PDA

View Full Version : Is it possible to...


KittyCat
09-16-2001, 01:40 PM
Is it possible to protect your out scripts from direct access like you can with your pics via htaccess ???
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^http://w*\.*mysite.com
RewriteCond %{HTTP_REFERER} !^http://w*\.*myothersite.com
RewriteRule .*[Cc][Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.mysite.com/hotlink.html

Anyone know if this would work???

PeepNTom
09-17-2001, 10:47 AM
yep you can I suppose...

RewriteRule .*[Cc][Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$|.*[Cc][Gg][Ii]$|.*[Pp][Hh][Pp]$ http://www.mysite.com/hotlink.html

havent ever tested it, but it should work

shane
09-17-2001, 02:03 PM
[Cc][Jj][Pp][Gg] should be [Jj][Pp][Gg]