Blocking a site from image hotlinking

Discussion in 'Site & Server Administration' started by Ian, Oct 12, 2005.

  1. #1
    I'm having an issue with a couple of sites where my photos are being used on messageboards and racking up my bandwidth quite quickly. Is there a way to write a .htaccess file to block an individual site from hotlinking a photo instead of all of them? I don't want to prevent Google and Froogle from being able to use them as they are actually not my biggest problem right now, and they do bring in pretty good converting traffic.

    Thanks in advance!

    Ian
     
    Ian, Oct 12, 2005 IP
  2. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    360
    #2
    Use an IP look up for the sites you want to block and then add the following (with the IP address you want to block)


    <Files 403.shtml>
    order allow,deny
    allow from all
    </Files>

    deny from xxx.xxx.xx.46
    deny from xx.xxx.xxx.194
     
    mjewel, Oct 12, 2005 IP