Disable directory browsing using .htaccess to Increase your website Security

Take a backup of your .htaccess file

1.Open your .htaccess file.

2.Add below code as a new line.

# DISABLE DIRECTORY VIEWS
Options -Indexes

3.Save the file and Done.

If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on Twitter and Facebook.



You may also like...

Leave a Reply

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