How to Stop Image Hot Linking to Your Site.

9 replies
I was looking for information on how to prevent people of directly linking to images on your site and driving up your bandwith usage.

I found this article on how to use .htaccess and rewriting to either block access or send a replacement image instead.

How to Block Hot Linking and stop Bandwidth Hogging?
#hot #image #linking #site #stop
  • Profile picture of the author sbucciarel
    Banned
    I prefer to play dirty and replace the hotlinked image with something really embarrassing. One guy was hotlinking and I replaced it with an image saying this image was stolen from ... but I've heard stories and actually seen some pretty funny, but quite nasty stuff as far as replacing images go ...
    {{ DiscussionBoard.errors[2482929].message }}
  • Profile picture of the author sitepaw
    If you are using hosting with cpanel, you should found an icon called "HotLink Protection" and can setup there.
    Signature

    {{ DiscussionBoard.errors[2482933].message }}
  • Profile picture of the author Emils
    I had never thought of that this way, but changing the stolen image with an ad of your site is actually a great idea

    Sure, you cannot make the image link to you, bet perhaps it's possible to convince some people to manually type in your address.
    {{ DiscussionBoard.errors[2483086].message }}
  • Profile picture of the author Rich Struck
    If it is a real problem just use .htaccess but if it is just a minor annoyance, have some fun with it. I replace the hotlinked images with the filthiest gag-a-maggot porn you can imagine. I had one guy email me once that I was ruining his eBay auctions. waa waa like I care.
    Signature

    {{ DiscussionBoard.errors[2483107].message }}
    • Profile picture of the author sbucciarel
      Banned
      Originally Posted by Rich Struck View Post

      If it is a real problem just use .htaccess but if it is just a minor annoyance, have some fun with it. I replace the hotlinked images with the filthiest gag-a-maggot porn you can imagine. I had one guy email me once that I was ruining his eBay auctions. waa waa like I care.
      lol ... you're probably the one I saw ... but yeah, replace the image with an ad for your site or do something funny with it.
      {{ DiscussionBoard.errors[2483169].message }}
  • Profile picture of the author AthirMan
    Try adding watermarks on all images. Worst case is that people hot link your images, but then people come to your site when they see the watermark
    {{ DiscussionBoard.errors[2483127].message }}
  • Profile picture of the author Jeremiah Walsh
    Someone was actually hotlinking one of my images for an ebay ad. I replaced it with an "adult" image just to be an ass.
    {{ DiscussionBoard.errors[2483234].message }}
  • Profile picture of the author biggsy
    .htaccess allows you to select specific directories, replace an image with another one (like "this image is stolen!"!), identify specific file types, and control different types of user access (can block IPs and password protect itself).
    Signature
    {{ DiscussionBoard.errors[2483718].message }}

Trending Topics