Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Disable Directory Browsing with htaccess

When we create a new Directory for our website without index.html then visitors get directory listing of all files of that folder.  Have ever noticed on any website that directory listing displaying instead of html file. In absence of index page in a folder , by default directory listing is shown. Directory browsing is very dangerous because malicious visitors can get working functionality of your website.

This article will help you to Disable Directory Browsing or listing easily on server.

First of all open .htaccess file if exists, if not then create it.

Add given below line.

Options -Indexes

Save . htaccess file.

Now your directory listing is disabled successfully. If you have any questions regarding this article, feel free to comment.

The post Disable Directory Browsing with htaccess appeared first on PHPCluster.



This post first appeared on Best PHP Programming Blog, Blog For PHP Developers, PHP Tutorial,PHP Blog For Beginners, please read the originial post: here

Share the post

Disable Directory Browsing with htaccess

×

Subscribe to Best Php Programming Blog, Blog For Php Developers, Php Tutorial,php Blog For Beginners

Get updates delivered right to your inbox!

Thank you for your subscription

×