Hey Hot-Linkers Here's A Nice Big Red 2000 x 2000px Square For You

| 1 TrackBack
nohotlink.pngYesterday, I caught kentuckysportsradio.com hot-linking to images on my blog.  I noticed an insane amount of traffic on my server requesting a single image, over and over again from the same referrer.  Classic case of hot-linking, and boy, does that irritate me.  Really though, is it that tough to just save an image and host it on your own blog instead of linking to others?

In a previous post I described how to address the hot-linking problem by using Apache to check the referrer on each request.  My previous solution involved simply returning a transparent 1x1 pixel image in place of the actual image requested.  Well, through this KentuckySportsRadio situation, I discovered that when your server is pounded on and the hot-linker doesn't notice that it's bothering you, they don't (err, won't) stop hot-linking.  Unfortunately, returning a transparent image just dosen't get their attention well enough.  So, I stepped it up a notch.

Instead of returning a transparent 1x1 pixel image, I decided to become really obvious and configured my server to return a massive, bright red, 2000x2000 pixel square.  This huge red square is bound to capture someone's attention.  And, wouldn't you know it, it worked!  After tweaking my server to send back this really annoying and disruptive 2000x2000 pixel square, KentuckySportsRadio.com gave up and changed their ways.  I win.

This is a great win for bloggers and system administrators everywhere.  You can somewhat curb hot-linking, and at the same time, my big red 2000x2000px square is only about 40Kb in size so it won't eat up your bandwidth.  Feel free to use my big red stop hot-linking square on your own site.  It's bound to make a great addition to a hot-linkers blog, forum, or web-site!

I love the smell of HTTP in the morning.

Did You Find this Helpful?

Did you find this post helpful, or at least, interesting?

  

Send Mark a Direct Message

If you'd like to send me a direct message, please do so below. However, I do not publicly post comments or messages submitted directly to me. So, if you're going to try to SPAM me, or my blog, you're pretty much wasting your time.

400 characters remaining

Error

About Mark

A Silicon Valley native, Mark Kolich is a full-time Software Engineer, a casual entrepreneur, and a consultant for hire. A web technologies expert, his current focus is on building powerful and robust cloud-driven web-applications using Java, PHP, Perl, AJAX, DHTML, CSS, and JavaScript. His favorite programming languages are PHP, Java and JavaScript. He uses Linux, enjoys biking to work, loves building great software, and always writes elegant, readable, and maintainable code.

1 TrackBack

OK, I'm on a slightly vengeful tear this week dealing with the infamous hot-linking problem.  Here, I explained how to more gracefully handle hot-linking blogs, forums, and other sites.  Then yesterday, I explained the situation to a few folk... Read More

Twitter (@markkolich)

Translate

About this Entry

This page contains a single entry by Mark Kolich published on October 1, 2009 9:03 AM.

Remember Kids: An HTTP Content-Length is the Number of Bytes, Not the Number of Characters was the previous entry in this blog.

Even Better, a Big 5000 x 5000px Animated GIF for Hot-Linkers is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.