Msg#: 4539642 posted 2:05 pm on Jan 27, 2013 (gmt 0)
I have recently had number of websites that link directly to images from my website. This is not hotlinking, it is direct server request. As an example: on the linking website there is image gallery script with thumbnails and when the visitor clicks on the thumb it loads the image from my website.
I block the their IP-s in .htaccess, but it is not the best way to stop them since they change their IP. I found another thread in the forum about the same, but no solution provided.
Does anybody has any idea how to deny such request in .htaccess?
Msg#: 4539642 posted 5:54 pm on Jan 27, 2013 (gmt 0)
This is not hotlinking, it is direct server request.
You mean no referer? Try creating a white list in htaccess instead of a black one. List all domains that are allowed to request images, if there is no referer then block access or show some image of your preference.
Msg#: 4539642 posted 1:42 am on Jan 28, 2013 (gmt 0)
Robots don't send referers. That includes legitimate search engines. Obviously this is not a problem-- it may even be an advantage-- if you don't want your images crawled. But as wilderness said above, there are also perfectly legitimate humans who don't send referers. And you can't identify them with some constant variable oops, uhm, well, you know what I mean like UA or IP.
The core problem is that your server can't tell the difference between a hotlink and a direct request. The referer is identical either way: It's the name of the requesting page.