leeh14 Posted December 15, 2010 Share Posted December 15, 2010 Hi, Was woudering if someone could help? I would like to stop people accessing a folder (web directory) on my domain using the .htaccess. However the folder contains scripts in it that i use thererfore a redirect away from that folder does not work. can you help? Quote Link to comment https://forums.phpfreaks.com/topic/221744-php-and-htaccess/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 15, 2010 Share Posted December 15, 2010 scripts in it that i use You forgot to tell us HOW you use the scripts in the folder. Quote Link to comment https://forums.phpfreaks.com/topic/221744-php-and-htaccess/#findComment-1147622 Share on other sites More sharing options...
leeh14 Posted December 15, 2010 Author Share Posted December 15, 2010 well i have php processing pages in there, in otherwise i have inclusde files in there and page which run functions! Quote Link to comment https://forums.phpfreaks.com/topic/221744-php-and-htaccess/#findComment-1147647 Share on other sites More sharing options...
PFMaBiSmAd Posted December 15, 2010 Share Posted December 15, 2010 Php reads included files through the file system, therefore you can deny all http requests to the files in the folder and your php scripts in public folders can still include files in the protected folder. Quote Link to comment https://forums.phpfreaks.com/topic/221744-php-and-htaccess/#findComment-1147651 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.