View Single Post
Old 08-30-2006, 12:15 PM  
s9ann0
Confirmed User
 
Join Date: Sep 2001
Location: Boston
Posts: 4,873
something like this might work:

Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER}	=""
RewriteCond %{HTTP_USER_AGENT} 	!^.*MSIE
RewriteCond %{REQUEST_URI}	!\.*htm$				[NC]
RewriteCond %{REQUEST_URI}	!\.*html$				[NC]
RewriteCond %{REQUEST_URI}	!\.*/$
RewriteRule ^(.*)$		[F,L]

RewriteCond %{HTTP_REFERER}	!=""
RewriteCond %{HTTP_REFERER}	!^http://mydomain.com			[NC]
RewriteCond %{HTTP_REFERER}	!^http://[a-z,A-Z,0-9,\-]+.mydomain.com	[NC]
RewriteCond %{REQUEST_URI}	!\.*htm$				[NC]
RewriteCond %{REQUEST_URI}	!\.*html$				[NC]
RewriteCond %{REQUEST_URI}	!\.*/$
RewriteRule ^(.*)$	[F,L]

Last edited by s9ann0; 08-30-2006 at 12:17 PM..
s9ann0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote