HAH! Take that, you smacktards!

I did a little searching via google today (I LOVE google!!!!) and found the solution for how to deal with those wacky hotlinking kids who use livejournal, blogspot, and myspace.

Modify your .htaccess file!

I added the following code to the top of my .htaccess:

# Begin hotlink image replacement
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?opendirviewer\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?myspace\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?blogspot\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?livejournal\.com/ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ images/tp_no_hotlink.gif [L]
# End hotlink image replacement

What it does is look at the requesting URL for an image. If the request came from one of the 4 domains listed, it replaces it with the image below.

Sure… showing the image still takes up bandwidth, but it’s only 7.49kb, and it will perhaps educate those little smacktards to stop what they’re doing (and still lets me hotlink to my own images from other locatons).

And before you think to yourself “Hey… I don’t use those 4 services… I can still hotlink to Tone’s crap!!”, think again.

I check my logs every single day (yeah… I’m bored). If I see your domain, it gets added to the idiot bucket too.

Choose life!

3 thoughts on “HAH! Take that, you smacktards!”

  1. Niiiiiice,

    but that won’t stop me stealing your code and using it on my .htaccess (whilst changing the redirect and using my own image, of course!)

    🙂

  2. oh, and dude, install the damn smiley and comment preview plugin will yah? Text smileys are so, you know, 1990’s and I never get it right so that the auto-smiley appears!

  3. The preview plugin is here, but I’m having issues getting the damn buttons to show up with the imbbox quicktags.

    *sigh*

    I’ll figure it out when I get some time.

Comments are closed.