![]() |
htaccess help please
how can I achieve that a hotlinked pic will be replaced by a predetermined other one?
This is what I got, it doesn't seem to work though... :( RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://blah1.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.blah1.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://blah1.com:80.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.blah1.com:80.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://xxx.xxx.xxx.xxx.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://xxx.xxx.xxx.xxx:80.*$ [NC] RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.blah2.com/hotlink.gif Thanks.... |
blah2.com is not affected by this htaccess...
|
good question, i have the same basic layout, and instead of the alternate pic, i just get the red x.
|
the problem is that I can stil hotlink like a champ...
wtf? |
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://domain.net$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain.net$ [NC] RewriteCond %{HTTP_REFERER} !^http://domain.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain.net/.*$ [NC] RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.domain.net/hotlink.gif [R,L] one i'm using... protection works, replacement image doesn't. |
I noticed I was missing the [R,L] ... :)
Your problem is that you probably have the hotlink image in the protected folder itself. Move it to another unprotected domain and change the htaccess accordingly. |
cool... i'll give it a shot.
|
good call, works now ; ))
thanks. |
Quote:
np |
All times are GMT -7. The time now is 01:27 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123