![]() |
[mod_rewrite] Defeating image hot-linking
I've been looking around for the most efficient way to do this and I've learned how to deny access to linked files on my site, but replacing requests with a "denied" image is proving to be more of a pain in the ass.
Here's what I'm using: Code:
Rewriteengine on -http://www.seretogis.org/files/linkables/huggles.jpg- Any ideas what may be the problem? |
You've set up an infinite loop as the redirection url meets the redirection reqirements.
Edit: There is a built in safety check in Apache, but it is sensitive to slashes and other special characters. Maybe try giving the relative path to the jpg and don't start the path with a "/"...maybe something like "files/linkables/dontlinkme.jpg" 2nd edit: You also might need to use ReWriteBase in this case. |
I just visit http://www.htmlbasix.com for their code generator
|
Quote:
|
All times are GMT -8. The time now is 01:01 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project