ShaneM Posted September 9, 2007 Share Posted September 9, 2007 Hello, I've attempted to block access to a PHP file within my forums which displays images. It's attachment.php. I've attempted the following, but I get an internal server 500 error when I put it into place. If I deny all then I can't view the images, which defeats the purpose. I can't set it to registered members only either as it will not display other spots where I've used the image. <Files attachment.php> Order Allow,Deny allow all Deny from .*torrent\.lt.* Deny from .*myspace\.com.* Deny from .*ebay\.com.* Deny from .*darkwarez\.pl.* Deny from .*hi5\.com.* </Files> Any help would be great. Thanks. Shane Quote Link to comment Share on other sites More sharing options...
effigy Posted September 10, 2007 Share Posted September 10, 2007 allow all should be allow from all. Always check the error log as well. 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.