View Single Post
Old 09-28-2003, 10:19 PM  
Shoplifter
Richest man in Babylon
 
Shoplifter's Avatar
 
Industry Role:
Join Date: Jan 2002
Location: Posts: 10,002
Posts: 5,743
Help with htaccess

I want to allow access from only certain domains. Now I know that this will block domains:


RewriteEngine on
RewriteCond %{HTTP_REFERER} abc.com* [OR]
RewriteCond %{HTTP_REFERER} def.com
RewriteRule /* http://www.yousite.com


But how can I hange this to allow only from these two domains and block all others?

Thanks!
Shoplifter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote