How to disable “Directory list of files-view” whenever there is no index.html or homepage file?

Hello Friends!!!

How to disable “Directory list of files-view” whenever there is no index.html or homepage file? [Important| Revised 2019]

Protecting your directories from being listed by your website’s visitors makes your website more secure.

best linux hosting provider
How to Prevent a Directory Listing of Your Website with .htaccess

This can be easily prevented by adding a line to the htaccess file. To disable directory listing using htaccess, open your htaccess file using a text editor and add a line “Options Indexes”.

In order to Disable “list of files view” you have write a simple code in .htaccess file [Updated June 2019]

 Options -Indexes 

cheapest linux hosting provider


This code will generate a 403 Forbidden error.

buy best linux hosting from redserverhost
How to Prevent a Directory Listing of Your Website with .htaccess





That’s it!!!!


For more information simply contact to the Best Linux Hosting provider-RedserverHostbest linux hosting provider-Red Server Host


Hope this helps you!!!


Thanks for Reading!!!


Tags: cheap linux hostingbuy linux hostingcheap reseller hostingbuy reseller hostingbest reseller hostingcheap web hostingcheapest web hostingcheapest reseller hosting,  cheap reseller hostcheap linux hostcheapest linux hostingbest linux hostingbest web hosting

Scroll to Top