Image Hotlinking

Discussion in 'Water Cooler' started by Nick, Jun 23, 2009.

  1. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    Do you prevent hotlinking of images on your server? Did you do it just to do it, or was it becoming a problem, leeching all of your bandwidth?
     
  2. Tyler

    Tyler The Badministrator

    Joined:
    Dec 23, 2007
    Messages:
    3,079
    Likes Received:
    63
    Location:
    Long Island, NY
    First Name:
    Tyler
    I've never done it before because it's never been a problem (yet). I probably would when needed, but I do know what it's like to be the hotlinker seeing the annoying "don't hotlink you idiot" image after you post. :shifty:
     
  3. kev

    kev Regular Member

    Joined:
    Mar 9, 2009
    Messages:
    1,224
    Likes Received:
    61
    bandwidth is cheap these days, so that should no be a problem.

    I do not worry about hotlinking. Who has the time to check all of the images posted to see if their hotlinked?
     
  4. Abomination

    Abomination Zealot

    Joined:
    Jun 1, 2009
    Messages:
    1,514
    Likes Received:
    102
    If you had Albums enabled on AA and people posted a picture hosted on AA as an image link, when people quoted the picture www.adminaddict would show up.


    Seems like inexpensive (and classy) advertising to me.

    wouldn't the google ranks go up for AA when that happens?
     
  5. Chris

    Chris Regular Member

    Joined:
    Dec 27, 2007
    Messages:
    5,422
    Likes Received:
    86
    Albums are indeed enabled here. ;)
     
  6. FullMetalBabe

    FullMetalBabe Zealot

    Joined:
    May 30, 2009
    Messages:
    2,912
    Likes Received:
    339
    I kind of don't know how to do this...
     
  7. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218
    You don't manually check. You set it up on your server.

    Haven't you ever seen when somebody tries to post an image (using the IMG code, for example) and the result is an unexpected "Do not hotlink our images" image? That's what hotlink prevention is.
     
  8. ArnyVee

    ArnyVee Regular Member

    Joined:
    May 25, 2009
    Messages:
    1,264
    Likes Received:
    39
    How could you make it so that if/when someone uses one of the pics on your site that your URL was listed with it when it displayed? Would it just be easier to use something like a watermark mod like this ....

    PB Watermark Album Images - vBulletin.org Forum
     
  9. FullMetalBabe

    FullMetalBabe Zealot

    Joined:
    May 30, 2009
    Messages:
    2,912
    Likes Received:
    339
    I really want to learn how to prevent hot linking. I guess I'll browse around.
     
  10. Disasterpiece

    Disasterpiece Addict

    Joined:
    Apr 11, 2008
    Messages:
    60
    Likes Received:
    0
  11. FullMetalBabe

    FullMetalBabe Zealot

    Joined:
    May 30, 2009
    Messages:
    2,912
    Likes Received:
    339
    Thank you very much!
     
  12. tryfuhl

    tryfuhl Champion

    Joined:
    Jun 27, 2009
    Messages:
    390
    Likes Received:
    14
    First Name:
    Shawn
    In your .htaccess

    To disallow hotlinking

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
    RewriteRule \.(gif|jpg|png|bmp)$ - [F]
    To display an alternate file (such as one that says come visit this site to see the image):

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
    RewriteRule \.(gif|jpg|png|bmp)$ http://www.mydomain.com/replacementimage.jpg [R,L]
    And here is a link that will explain how to watermark hotlinked images:

    Tutorials - Smarter hotlink prevention
     
    4 people like this.
  13. FullMetalBabe

    FullMetalBabe Zealot

    Joined:
    May 30, 2009
    Messages:
    2,912
    Likes Received:
    339
    \o.o/ Wooo0ot I learned 4 things today!
     
  14. Chris

    Chris Regular Member

    Joined:
    Dec 27, 2007
    Messages:
    5,422
    Likes Received:
    86
    The members of this community deliver. :thumbup:
     
  15. FullMetalBabe

    FullMetalBabe Zealot

    Joined:
    May 30, 2009
    Messages:
    2,912
    Likes Received:
    339
    \o.o/ I completely agree with ya, now to learn not to mess the .htacess! xD
     
  16. Abomination

    Abomination Zealot

    Joined:
    Jun 1, 2009
    Messages:
    1,514
    Likes Received:
    102
    Sorry I did not respond, thanks for the info.



    This thread might make a fantastic article! I can envision having a subtle watermark being useful for my needs.
     
  17. tryfuhl

    tryfuhl Champion

    Joined:
    Jun 27, 2009
    Messages:
    390
    Likes Received:
    14
    First Name:
    Shawn
    We receive dozens of hits from google images a day, though none of them are hosted on our server (with the exception of an avatar here and there) but if we did, a hotlink watermark would definitely be implemented

    I find just a nice little gradient black to grey bar with the domain name in white looks best while still drawing attention, people won't be afraid to repost the image elsewhere because it doesn't have a huge:

    HOSTED AT URIMGSFTW.COM!!#!!!!!@ across it
     
  18. FullMetalBabe

    FullMetalBabe Zealot

    Joined:
    May 30, 2009
    Messages:
    2,912
    Likes Received:
    339
    ;D I did mine and it's actually sortof cute.
     
  19. Nick

    Nick Regular Member

    Joined:
    Jul 27, 2008
    Messages:
    7,441
    Likes Received:
    218

Share This Page