Forum Moderators: phranque
SetEnvIfNoCase Referer "^http://www.hisdomain.com/" banned_ref=1
Order Allow,Deny
Deny from env=banned_ref
Allow from all
However now I'm encountering a different problem. This person has found a way around the block by using a simple meta http-equiv="Refresh". The page with the refresh is still on the banned domain so I would have expected it to be blocked as well, unfortunately it does work and he's able to refresh his page with mine. Apparantly the Refresh command doesn't pass along the host page as referrer info. I do not want this person to be able to link to my page in any way, including this Refresh approach. Any ideas on how to stop something like this? Thanks for your time!
We've had several good discussions on using htaccess to stop hotlinking. Have a look at:
[webmasterworld.com...]
[webmasterworld.com...]
Kris
Any initial thoughts? Should I post my .htaccess file when I'm a bit more coherent tomorrow?
Thanks,
Kris
The problem may be that you've blocked blank referers to fix the meta-refresh problem, and/but some of your "legitimate" users will have blank referers due to their ISP or corporate proxy server setup, or because they use software like Norton Internet Security.
If you want to see what your users are seeing, try flushing your browser cache, and type in the image URL directly (type-in = no referer). You'll have to flush your browser cache every time before you request the image to see the result.
Jim
I actually host my main images (those that are the "guts" of my site) on a different server. The code that allowed my domain access to these had a slash ("/") at the end. Therefore, anyone who tried to view my site without the ending slash got the fill-in images. I removed the slash and my site works with and without the slash and the leading www.
So, I'm happy!
However, I just discovered someone else linking to another image on another web page that I really don't put much time & effort into. I'm not even using this image on the current version of the page, but obviously, it's still on the server. This one doesn't bug me as much for reasons I can't go into without explaining what my main site is all about and why these images are valuable to me.
So the question is, why do people link to static images? Why not just right-click and take them if they want them so bad? It leaves them wide open for the owner of the image to do something nasty back to them.
Kris