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 Link to comment https://forums.phpfreaks.com/topic/86766-prevent-access-to-the-folder/ 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) Link to comment https://forums.phpfreaks.com/topic/86766-prevent-access-to-the-folder/#findComment-444289 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.