We provide premium cPanel hosting!
  • Contact
  • View Cart (0)
  • Client Area
WMP IT WorX (PTY)Ltd
Knowledgebase
Submit Ticket
  • Domains
    Register Domain
    Your very own website address
    Transfer Domain
    Move your domain to WMP IT WorX

    Hundreds of customer's around the world trust WMP IT WorX to manage their domain. We provide freedom and control including full access & the ability to move/sell your domains.

  • Web Hosting
    Shared Hosting
    Premium cPanel web hosting
    Wordpress SEO
    Be Found On Google Search
    Web Design
    Hire WMP IT WorX to build your website

    We provide a wide range of services for your business including Web Hosting, Web Design, SEO & more.

  • Company
    Affiliate Program
    Make money with WMP IT WorX
    Announcements
    Get up to date with the latest news
    Downloads
    View our collection of downloads

    Learn more about what makes WMP IT WorX the best choice for web hosting services.

  • Support
    Contact Form
    Contact our pre-sales department
    Submit Ticket
    Contact our support via ticket
    Knowledgebase
    View our vast documentation

    If you have a pre-sale question or issue with your website we are here to help.

  • Order

Knowledgebase

Portal Home > Knowledgebase > Security > How to Disable Directory Browsing Using the htaccess Rule

  Categories

Backup/Restore
4
CloudLinux (cPanel)
10
cPanel
1
cPanel - Control Panel
24
Cron Jobs
1
Databases
2
Databases
11
DirectAdmin
48
DNS
1
DNS - Nameservers
6
Domain Management
10
Domains
1
Email
3
Email
17
FTP
9
Installing a Control Panel
6
Mail Filters & SPAM
8
Mobile
11
Networking
1
Others
3
PayPal
7
pHp ini Editor
1
pHpMyAdmin
1
Plesk
47
Security
10
SiteWorx (Control Panel)
58
Softaculous
69
SolusVM
18
SSL
5
SSL Certificates
1
Virtualizor
19
WHM
18
Wordpress
3
WordPress
17

  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 Password Protect a Directory in cPanel You can lock a directory with a password using the cPanel's Directory Privacy. 1. Log in to your... How to Protect the htaccess File You can prevent unauthorized access to your htaccess file by adding this rule to the file: #... How to Enable the Two-Factor Authentication on Your cPanel Account Security is important for our data safety. We recommend you to enable the Two-Factor... How to Disable the Two-Factor Authentication on Your cPanel Account Follow this instruction to remove two-factor authentication from your cPanel account.1. Log in to... 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...
« Back

  Support

My Support Tickets
Announcements
Knowledgebase
Downloads
Network Status
Open Ticket
728+ people trust WMP IT WorX (PTY)Ltd
Join them today
Services
  • Shared Hosting
  • Wordpress SEO
  • Web Design
Domains
  • Register Domain
  • Transfer Domain
Company
  • Affiliate Program
  • Announcements
  • Downloads
Support
  • Contact Form
  • Submit Ticket
  • Knowledgebase
Sound Mining House, 2A Fifth Ave Rivonia, Sandton, 2128
sales@wmphost.net
+27 66 131 0322
WMP IT WorX © 2026 | All rights reserved
  • Terms Of Service
  • Acceptable Usage Policy
  • Privacy Policy
Credit Card logo
PayFast

Loading...
Loading...

Generate Password

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