Web Hosting Talk







View Full Version : .htaccess in Ensim server help


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

TMX
07-27-2002, 10:26 PM
Originally posted by Gary0704
Can somebody tell me what should I do is right for ensim


Yes, add the following to your .htaccess:

Options +FollowSymlinks

That should do it, assuming your code itsself is good.

-Bob

Gary0704
07-27-2002, 11:18 PM
thanks a lot, it works.

TMX
07-27-2002, 11:37 PM
Originally posted by Gary0704
thanks a lot, it works.

:)


-Bob