ahzulfi Posted January 19, 2008 Share Posted January 19, 2008 Hello, i have some files in my includes/ folder that are important and i dont want INCLUDES folder and its subfolder to be accessed by any user, so how can i lock it. hope you understant the problem Quote Link to comment Share on other sites More sharing options...
madmax Posted January 20, 2008 Share Posted January 20, 2008 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) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.