Thread: htaccess help
View Single Post
Old 11-26-2002, 09:50 AM  
Gman.357
Confirmed User
 
Join Date: Oct 2002
Location: USA
Posts: 2,796
Actually, you need something like this. Allow/Deny won't work for what you want:

AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On

RewriteCond %{HTTP_REFERER} !^http://www.site-a.com/.* [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site-b.com/.* [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site-c.com/.* [NC]


RewriteRule /* http://www.yoursite.com/error.html [R,L]

Last edited by Gman.357; 11-26-2002 at 09:53 AM..
Gman.357 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote