Image Hotlinking

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

  1. Nick

    Nick Regular Member

    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

    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

    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

    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

    Albums are indeed enabled here. ;)
     
  6. FullMetalBabe

    FullMetalBabe Zealot

    I kind of don't know how to do this...
     
  7. Nick

    Nick Regular Member

    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

    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

    I really want to learn how to prevent hot linking. I guess I'll browse around.
     
  10. Disasterpiece

    Disasterpiece Addict

  11. FullMetalBabe

    FullMetalBabe Zealot

    Thank you very much!
     
  12. tryfuhl

    tryfuhl Champion

    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

    \o.o/ Wooo0ot I learned 4 things today!
     
  14. Chris

    Chris Regular Member

    The members of this community deliver. :thumbup:
     
  15. FullMetalBabe

    FullMetalBabe Zealot

    \o.o/ I completely agree with ya, now to learn not to mess the .htacess! xD
     
  16. Abomination

    Abomination Zealot

    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

    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

    ;D I did mine and it's actually sortof cute.
     
  19. Nick

    Nick Regular Member

Share This Page