chigley Posted October 22, 2007 Share Posted October 22, 2007 Hey guys, I hope you can help on this one. I want to block all users (except myself) from accessing all files in the public_html directory. I want anyone who isn't me to be shown a custom error (I assume the 403 error?) The thing is, with my current code, it blocks everyone from viewing everything - including the 403 error page! How can I specify to block everything except 403.shtml? My code is: order deny,allow deny from all allow from 82.42.33.56 allow from 85.210.169.252 <Files 403.shtml> order allow,deny allow from all </Files> Thanks a lot, Charlie Link to comment https://forums.phpfreaks.com/topic/74337-htaccess-is-driving-me-crazy/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.