View Single Post
Old 05-04-2003, 09:10 PM  
X37375787
Guest
 
Posts: n/a
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....
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote