Gary0704
07-27-2002, 08:20 PM
I use the following code at ensim to prevent hotlink from other sites:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.xxx.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.ccc.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.ddd.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.ttt.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yyy.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.fff.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ http://www.fff.com/bad.gif [R]
but it did not work.
I used to use the same code at cobalt Raq3, it worked fine.
Can somebody tell me what should I do is right for ensim?
thanks
Gary
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.xxx.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.ccc.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.ddd.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.ttt.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yyy.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.fff.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ http://www.fff.com/bad.gif [R]
but it did not work.
I used to use the same code at cobalt Raq3, it worked fine.
Can somebody tell me what should I do is right for ensim?
thanks
Gary
