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.

Comments

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 says:

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).