Prevent access to some folders in your webserver

To prevent access to some folder in you website, you need to do 2 simple steps:

first create .htaccess file in the folder you want to prevent, and place the following
Options -Indexes   ----> this command will prevent listing all content inside the folder.

Second: make sure of AllowOverride 
in httpd.conf file in apache for the folder that you want to prevent access to is set to  All not None
i.e   AllowOverride All




Post a Comment

0 Comments