Quote:
Originally Posted by Wolfy
(I don't want to disable hotlinking completely.)
You can block individual sites by using this:
RewriteCond %{HTTP_REFERER} ^ http://(.+\.)?site\.com/ [NC]
such as:
RewriteCond %{HTTP_REFERER} ^ http://(.+\.)?fusker\.lv/ [NC]
but what if I want to block every site that has the text "fusker" anywhere in the url? How do I do that?
|
Try this...
RewriteCond %{HTTP_REFERER} !^www\.mysite\.com
RewriteCond %{HTTP_REFERER} !^$
1) says only allow referrers that are your own site
2) says don't block if there's no referrer
Hope it helps