Forum Moderators: phranque
You might also want to check out this current thread [webmasterworld.com] for a cautionary tale about blocking blank referrers.
Jim
RewriteEngine on
RewriteCond %{HTTP_referer} ^http://(www\.)?theirsite\.com [NC]
RewriteRule (.*) http:// mysite/folder/file.html [R=301,L]
I know hotlinking to a image can't be redirected to a html page, darn it.
Rewritecond %{REQUEST_URI}!^/image1\.gif [NC]
RewriteCond %{HTTP_referer} ^http://(www\.)?website1\.com [NC,OR]
RewriteCond %{HTTP_referer} ^http://(www\.)?website2\.co.uk [NC,OR]
RewriteCond %{HTTP_referer} ^http://(www\.)?website3\.com [NC]
RewriteRule (.*) http:// mysite/file.html [R=301,L]
But it doesn't work, if someone requests image2 it also gets redirected to mysite/file.html