Disable Directory Browsing in CPanel – xozz.in

Disable Directory Browsing in CPanel

How to keep people from stealing your reports, images, and other files you have stored on your hosting server.

If you have shared hosting many of your files are open to inspection by anyone who has an interest.

This includes files you are using for redirects, images, pdf’s, etc.

The reasons to disable your directory browsing is for privacy of course, but it will also help against hacking in the way that it will hide your files making you less vulnerable to attack.

The directory is the default page the web server will go to if you don’t have an index file directing otherwise.

You are more susceptible to hackers if they can see your themes, plugin’s etc. Often hackers are looking for a particular theme or plugin because they have already found a way to exploit it.

Here is a sample of what a directory tree of your website will look like.

website-file-directory-example

How to Disable Directory Browsing in cPanel

This works like a charm for your shared hosting with cPanel.

Step 1.
Log in to your cPanel

Step 2.
Click on Indexs

Snip20160828_2

Step 3.
The directory tree will display. Select what level or folder you want disabled.
If you want to disable the entire site then select “public_html” and select the domain.

Snip20160828_3

Step 4.
Select No Index and SAVE.

web hosting in india

Step 5.
That should do it. Now when someone tries to access your files they will see a “403 Forbidden” HTTP status code notice that will tell the user your files are not accessible.

 

Leave a Reply

Your email address will not be published. Required fields are marked *