Prevent Directory Browsing

i'm going to tell you how to prevent directory browsing.

Step 1. Always backup before you make changes.

Step 2. Open your .htaccess file

* If you can't see it, login to file browser in cPanel and go to settings and enable show hidden files.

Step 3. Paste in the following:

# BEGIN Directory Browsing Block
Options -Indexes
# END Directory Browsing Block

Step 4. Save the .htaccess file.

You're Done.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to change the PHP version?

1. Login to your cPanel and navigate to Software2. Then click MultiPHP Manager 3. Then tick the...

How to fix WordPress upload error?

Do you get the following error or similar?1. Login to your cPanel and navigate to Software2. Then...

Quick Install of WordPress

1. Login to your cPanel and navigate to Applications2. Then click WordPress Manager 3. Then...

What do my cPanel stats mean?

Within cPanel, there are numerous statistics listed on the left of the screen.   Disk Space...

xml-rpc protection

Most WordPress attacks are due to the XML-RPC file being attacked.So we can block it...1. Open up...

Powered by WHMCompleteSolution