1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Bandwidth Theft

Discussion in 'Content Management' started by sarahturned, Sep 25, 2008.

  1. #1
    I don't use htaccess to prevent others from hot linking my images on my blog because I get a healthy amount of traffic from google images.

    Problem is I came across a few sites today that are hot linking directly to the images.

    How can I stop them?
     
    sarahturned, Sep 25, 2008 IP
  2. MikeLiao

    MikeLiao Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I believe there is a way to do this in your control panel.
     
    MikeLiao, Sep 26, 2008 IP
  3. sosmuthu

    sosmuthu Peon

    Messages:
    287
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Add this code in your htaccess file to prevent hotlinking of images
    when someone hotlinks theyll just see a red x instead of the image

    This is the best method,than working in your Cpanel Hotlink protection

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://yourwebsite.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://yourwebsite/.*$ [NC]
    RewriteRule .*\.(gif|GIF|jpg|JPG|jpeg|JPEG)$
     
    sosmuthu, Sep 26, 2008 IP
  4. sarahturned

    sarahturned Peon

    Messages:
    268
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Doesn't this block hot linking all together. If you did this, wouldn't you lose google image referral traffic...that's something I want to avoid.
     
    sarahturned, Sep 26, 2008 IP
  5. lotsofish

    lotsofish Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes you're right, this will block all images from anywhere that's not your own site.

    Why not try this?

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^http://badguywebsite.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} ^http://badguy2website.net/.*$ [NC]
    RewriteRule .*\.(gif|GIF|jpg|JPG|jpeg|JPEG)$

    Edit and put as many
    RewriteCond %{HTTP_REFERER} ^http://badguywebsite.com/.*$ [NC] lines as you need.
     
    lotsofish, Sep 26, 2008 IP
  6. schweppes31

    schweppes31 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Surely it's better to ban individual domain names. i'm pretty cool with hotlinking but occasionally sites really abuse it. I had three South Korean news websites all link to a story at once, they didn't host the pictures themselves but rather took our text, published it verbatim on their website and then furnished the article with our pictures hotlinked from our server. I banned each one individually on noticing 120,000 uniques had hit those files.

    Remember, lots of forums that hotlink your images will send you lots of traffic too... be discriminating.
     
    schweppes31, Sep 28, 2008 IP
  7. wussadotcom

    wussadotcom Banned

    Messages:
    1,168
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #7
    How about sending a warning or two. :)
    You can direct the images to come out as another image :p
     
    wussadotcom, Sep 28, 2008 IP