Utterly Boring dot com

Smart Image Hotlinking Protection

Another one for the bookmarks when I decide to turn back on my image blocking. Thanks to Neil for the link.

Posted by Jake on 07/16/04 @ 07:05 AM
Posted in Cool, Geekdom | 2 Comments | Permalink
Submit to digg, del.icio.us, reddit, or stumbleupon

2 Comments

Jesse Thompson said on 07/16/04 @ 09:40 PM:
Of course, you can defeat any referrer based hotlink protection that allows blank referrers with a trick like this:



document.getElementById('a').src = 'http://othersite.com/img.jpg';


Jake said on 07/18/04 @ 11:22 AM:
The problem with JavaScript-based blocking is that it's easily defeatable. Somebody can still get the URL for the image, and post it in some forum somewhere (which is the problem I have).

Post a comment












HTML Allowed: a href, b, br, p, strong, em, ul, li, blockquote




Note: There is currently a problem with special characters causing errors when you try to comment, so if you're copying information from another Web site that has smart quotes or em dashes or ellipses or similar, please remove them and manually type them out.

Comment Policy: Comments on older entries or comments containing a bunch of links are moderated automatically on this site to help fight comment spam. If you don't see your comment after submitting, it will appear on the site after it has been approved. We also reserve the right to remove your comment for any reason we see fit, but if you keep it remotely on topic, it'll stay.

What are you doing down here? Don't you have something better to do? Like Go Back To The Top of the page, or even see who created this site? This site is © 2001 - 2008 by the Utterly Boring folks at UtterlyBoring.com. Steal my content, as I probably did, too, just link to my site or the original site. Batteries not included. One size fits all. Not for off-road use. Not for internal use. Do not taunt Happy Fun Ball. Technorati Profile.