Jump to content

Prevent Access to the folder


ahzulfi

Recommended Posts

Main config file - http://httpd.apache.org/docs/2.0/mod/mod_access.html#deny

 

<Directory /full...path..../includes>
Order Allow,Deny
Deny from all
</Directory>

 

But the "Location" directive would probably be a far better bet...

http://httpd.apache.org/docs/2.0/mod/core.html#location

 

<Location /includes>
Order Allow,Deny
Deny from all
</Location>

 

You can also use .htaccess files if you don't have access to the main server config file

http://httpd.apache.org/docs/2.0/howto/htaccess.html (How)

http://httpd.apache.org/docs/2.0/howto/htaccess.html#when  (When not)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.