Forum Moderators: phranque
Someone recommended this board to me as a great place to get help so here goes...
I am looking for a script that will do what .htaccess does, only on a Windows 2003 server
Basically we are trying to restrict access to a directory to two domains only
This is the original .htacces, but (I have since found out) it doesnt work on a windows server
RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*domain1.com(:80)*/ [NC]
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*domain2.com(:80)*/ [NC]
RewriteRule .* - [F]
Thank you :)