Take That!

!@(nothotlink.JPG popimg: “No Hot Link!”) Someone has been hotlinking to pictures on my site and stealing bandwidth. Ok – it’s only one picture – but whatever, it’s the principle of the matter, right? So I thought I’d create an error image and edit my .htaccess file so that the error image would show up on their site instead of the beautiful image of Shana Hiatt that they were expecting. Tee Hee – what do you think of the pic? 😆 That should teach ’em, eh?

If you’re having the same problem, you can stop servers from hotlinking your site’s files by editing the .htaccess file in your site’s root directory.

For example: Your site url is www.example.com. To stop hotlinking images from an outside domain and display an image called nohotlink.jpg instead, use this code in your .htaccess file:

Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www.)?example.com/ [NC
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .(jpe?g|gif|bmp|png)$ images/nohotlink.jpg [L]

There – easy as pie right?

11 thoughts on “Take That!

  1. nice idea :)

    but this nooB is curious … how do u know someone is stealing ur bandwidth? what’s hotlinking? (still trying to figure all this out :))

  2. That’s great marie….I would so love to see the site so I could see the dog in action…LOL. Especially if it was like a pregnancy picture or something! HAHAAH Caption: “This is me at 23 weeks.”

  3. I’m confused by the computer lingo (what is stealing bandwidth–is that like running an extension cord to your neighbor’s outside outlet?)–but it’s still very funny!

Comments are closed.