Hotlink protect from SINGLE website

Discussion in 'Apache' started by helleborine, Jun 26, 2010.

  1. #1
    Hi,

    I'd like to have hotlink protection from websites that abuse the privilege by pretty much hotlinking half my website images.

    Instead of allowing particular websites, I'd like to DISALLOW particular websites.

    How is this done?

    Thanks ahead!
     
    helleborine, Jun 26, 2010 IP
  2. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #2
    Well, why do you want to disallow certain websites from hotlinking and would like to allow others? A much better practice is to disallow everyone from hotlinking to your images. Use the following code:

     
    madaboutlinux, Jun 27, 2010 IP
  3. helleborine

    helleborine Well-Known Member

    Messages:
    915
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    120
    #3
    I know how to do that...

    I actually don't mind a smattering of hotlinking from low-traffic websites that use a few images, but some websites are displaying 50 images, which is (1) very much into the realm of copyright infringement and (2) they're burning up my bandwidth.
     
    helleborine, Jun 27, 2010 IP
  4. SupplementResearch

    SupplementResearch Member

    Messages:
    99
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #4
    I've been trying to figure this out too. The problem that I am having is with disabling images from feeds by changing my .htaccess file. I have 2 websites on shared Dreamhost, and I'm overloading their server. It's funny because I max out at 2k page views per day and am usually much lower (~700). Dreamhost is killing my user which is very annoying when I am logged in. I'm trying to lower server load.
     
    SupplementResearch, Jun 27, 2010 IP
  5. helleborine

    helleborine Well-Known Member

    Messages:
    915
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    120
    #5
    I'm glad to know I'm not the only for which this would be useful. Web pages about hotlinking abound, but they are all concerned with blocking as much as possible.
     
    helleborine, Jun 27, 2010 IP
  6. SupplementResearch

    SupplementResearch Member

    Messages:
    99
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #6
    SupplementResearch, Jul 4, 2010 IP
  7. helleborine

    helleborine Well-Known Member

    Messages:
    915
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    120
    #7
    Thanks - but that's also the opposite of what I want to do, which is to allow hotlinking, except for a few bad apples.
     
    helleborine, Jul 4, 2010 IP