Jump to content

block external acccess to PHP file


ShaneM

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.