Forum Moderators: phranque
I've worked for the last month to stymie this hemorrhage, but I'm mystified as to the random nature of the blocking from the various rewrite codes I've used. No matter what I install, it still lets about 15% of image calls through to MySpace.
For instance, on one MySpace site my image will be blocked and not show, while on another it will show. I check the properties of the image and in both cases it is indeed mine. Same image file from my lone image directory.
I'm not allowing ANY hotlinking from MySpace, so how is it possible that my hotlink blocker works sometimes and not others? I'm blocking all image access except from about seven domains that in no way resemble MySpace.
Thanks in advance for whatever explanation you might have!
Some users --again both good and 'bad -- use security software suites. Many of these suites block the referrer information, and their users may be completely unaware of it.
If you 'test' on various sites, be sure to flush your browser cache after every successful image load. Otherwise, the image will now be cached in your broswer, and your browser will show you its cached version instead of re-fetching the image from your server. If no request is sent to your server, then obviously the access-control code on your server cannot affect the browser.
You cannot and should not expect any HTTP-referrer-based anti-hotlinking method to be 100% effective. The point is to reduce wasted bandwidth or to make unauthorized display of your images more difficult and unreliable. But there is no 100%-effective method to completely prevent this, short of taking your images off the Web.
Some folks use a cookies-n-script approach to control image access. Others simply rename the images directory occasionally, or even regularly on a schedule. But once an image is stored in a network or browser cache, then your server can no longer control access to it. And making the images non-cacheable simply sends your bandwidth through the roof as well...
Jim