SharkBait Posted November 16, 2006 Share Posted November 16, 2006 Ok trying to stop hotlinking and this is what I have in my .htaccess file[code]RewriteEngine OnRewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http://(.+\.)?hostedtest\.com/ [NC]RewriteCond %{HTTP_REFERER} !^http://(.+\.)?myplace\.com/ [NC]RewriteRule \.(jpe?g|gif|png|pdf)$ - [NC,F][/code]Though it doesn't seem to be working. I need to block all hotlinking attempts to images and pdfs.The above myplace.com is fictional the real site is in there instead but doesn't seem to be working.mod_rewrite is turned on because I do use it for other applications within the site. I can also do redirects via .htaccess too :)What am I doing wrong? Quote Link to comment Share on other sites More sharing options...
steelmanronald06 Posted November 17, 2006 Share Posted November 17, 2006 Apache problem. Moving to the apache board! Quote Link to comment Share on other sites More sharing options...
SharkBait Posted November 21, 2006 Author Share Posted November 21, 2006 Thanks for moving it :)Anyone see anything wrong with the .htaccess I use to blocking image hotlinking?**Edit:The issue I was having was the line with hostedtest.com in it. What is the flag I need to set so that it continues down the list and reads the other rules? L?? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.