Remove Indexing on Your Site

By sbondo1234 on 27 April, 2019

What?

If you go to your site and put a folder in the address bar instead of a file you will be greeted with folder indexing, which allows people to look at whatever is in that folder/directory. When allowed anyone can type in a ‘normal’ folder into the address bar on your site and then be greeted with an easy way of seeing every folder and every file on your site. There are many reasons you may not want people to be able to access the indexing of you site and lucky for you it is really simple to disable it.

How?

All you need is a .htaccess file. You can read here on how to make your own (Don’t need .htpassword to remove indexing).

Once you have your .htaccess file, just right click on it and edit with your text editor and add this one line of code:

Options -Indexes