Cenmax
  • 0 Shopping Cart
  • Home
  • Store
    • Browse All
    • Cloud Web Hosting
    • WordPress hosting
    • ProCloud VPS
    • GeoCloud VPS
    • USA Dedicated Servers
    • Server Management Services
    • Managed Cloud
    • Cheap Web Hosting
    • Cenmax Drive
    • Managed VPS Cloud
    • Dedicated Servers in India (Latest)
    • Register a New Domain
    • Transfer Domains to Us
  • Announcements
  • Knowledgebase
  • Network Status
  • Affiliates
  • Contact Us
  • More
  • Account
    • Login
    • Register
    • Forgot Password?
  1. Portal Home
  2. Knowledgebase
  3. cPanel & WHM
  4. Security
  5. How to disable directory browsing using .htaccess?

  Categories

3
Affiliates
4
Billing
16
Cloud Hosting
118
cPanel & WHM
48
DirectAdmin
6
DNS - Nameservers
34
Email
1
Hosting Freebies
3
Others
7
PayPal
47
Plesk
11
Root Servers (Dedicated/VPS)
61
SiteWorx (Control Panel)
76
Softaculous
18
SolusVM
57
SSL FAQ's
19
Virtualizor
17
WordPress
11
WordPress Cloud

  Categories

  Tag Cloud

HIPAA China GST Cancellation Dedicated IP free ssl ssl cloud hosting freebies CDN SSH PHP Change PHP Version

  Support

  My Support Tickets   Announcements   Knowledgebase   Downloads   Network Status   Open Ticket

How to disable directory browsing using .htaccess? Print

  • 0

For security purposes, we recommend that you disable directory browsing on your website so no one can see the files/folders of your website.


You can disable Directory Browsing by adding this line to your .htaccess file.

Options -Indexes




Was this answer helpful?

Related Articles

How to ban any IP Address via .htaccess? If someone is trying to hack your website or you want to block their IP Address, you can add this... How to protect your .htaccess file? For security purposes, we recommend you to prevent access to your .htaccess file from... How to restrict directory access by IP address? To secure your admin area from hackers, we recommend that you allow access only from a selected... How to protect a folder with username and password in cPanel? You can lock a directory with a password by using the cPanel Password Protected Directories... How to blacklist an IP Address to deny it access to your website? You can lock directory with a password by using the cPanel Password Protected Directories...
« Back

  Tag Cloud

HIPAA China GST Cancellation Dedicated IP free ssl ssl cloud hosting freebies CDN SSH PHP Change PHP Version

  Support

  My Support Tickets   Announcements   Knowledgebase   Downloads   Network Status   Open Ticket
  • Contact Us
  • Terms of Service

Copyright © 2025 Cenmax. 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
Українська

Choose Currency

$ USD
Rs. INR
£ GBP

Generate Password

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