Forum Moderators: phranque
AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/test/
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/test/
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/cgi/
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/cgi/
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/cards/1/
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/cards/1/
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/cards/
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.com/cards/
RewriteCond %{HTTP_REFERER} !^http://mydomain.net/cards/1/
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.net/cards/1/
RewriteCond %{HTTP_REFERER} !^http://mydomain.net/
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.net/
RewriteCond %{HTTP_REFERER} !^http://mydomain.net/cards/
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.net/cards/
RewriteCond %{HTTP_REFERER} !^http://mydomain.org/cards/1/
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.org/cards/1/
RewriteCond %{HTTP_REFERER} !^http://mydomain.org/
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.org/
RewriteCond %{HTTP_REFERER} !^http://mydomain.org/cards/
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.org/cards/
RewriteRule /* [mydomain.com...] [R,L]
Can anyone help?
(edited by: DaveAtIFG at 1:04 am (gmt) on Oct. 28, 2001
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain/.*$ [NC]
RewriteRule .*\.gif$ - [G]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain/.*$ [NC]
RewriteRule .*\.jpg$ - [G]
artminds, did you make sure to replace yourdomain in the .htaccess file in all 4 places? Also make sure you include the .com/.net/.org/.* in there too.