UWeb Solutions
  • Home
  • Store
    • Browse All
    • Shared Hosting
    • WordPress Hosting
    • Email Hosting
    • Reseller Hosting
    • Register a New Domain
    • Transfer Domains to Us
  • Announcements
  • Knowledgebase
  • Network Status
  • Contact Us
  • More
  • 0 Shopping Cart
  • Account
    • Login
    • Register
    • Forgot Password?
  1. Portal Home
  2. Knowledgebase
  3. Security
  4. How to Disable Directory Browsing Using the htaccess Rule

  Categories

CloudLinux (cPanel)
10
CloudLinux (WHM)
1
cPanel - Control Panel
24
Databases
11
DNS - Nameservers
5
Domain Management
17
Emails
36
FTP
9
Installing a Control Panel
6
Security
10
Softaculous
69
SSL
5
WHM
19
WordPress
18

  Categories

  Support

My Support Tickets
Announcements
Knowledgebase
Downloads
Network Status
Open Ticket

How to Disable Directory Browsing Using the htaccess Rule Print

  • 0

For security purposes, you should disable directory browsing on your website so no one can see the files/directories of your website.

You can disable Directory Browsing by adding the below line to your dot htaccess file.

Options -Indexes

Was this answer helpful?

Related Articles

How to Block Any IP Address via an htaccess Rule If you want to block an IP Address, you can add the below lines to your htaccess file. order... How to Protect the htaccess File You can prevent unauthorized access to your htaccess file by adding this rule to the file: #... How to Block an IP Address to Deny Access to Your Website You can blacklist an IP Address to deny access to your website. 1. Log in to your cPanel... How to Disable the Two-Factor Authentication on Your cPanel Account Follow these steps to remove two-factor authentication from your cPanel account. 1. Log in to... How to Enable or Disable Mod Security in cPanel Are you facing the issue of IP getting blocked repeatedly? If the answer is Yes, then it may have...
« Back

  Support

My Support Tickets
Announcements
Knowledgebase
Downloads
Network Status
Open Ticket

© 2026 UWeb Solutions. All Rights Reserved.


Loading...
Loading...
Choose language
العربية
Azerbaijani
Català
中文
Hrvatski
Čeština
Dansk
Nederlands
English
Estonian
Persian
Français
Deutsch
עברית
Magyar
Italiano
Macedonian
Norwegian
Português
Português
Română
Русский
Español
Svenska
Türkçe
Українська

Generate Password

Please enter a number between 8 and 64 for the password length