View Single Post
Old 01-06-2005, 12:19 PM  
nudecanada
Confirmed User
 
Join Date: Jan 2004
Location: Canada
Posts: 793
Quote:
Originally Posted by fusionx
This will block any referring site with "fusker" in the domain string.

RewriteEngine on
RewriteCond %{HTTP_REFERER} .*fusker*.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|png)$ - [F,NC]

If you want to return a specific image in it's place, use

RewriteRule .* http://www.whoever.com/your_hotlink_dir/hotlink.jpg [F,R]

I'd use a watermarked image promoting your site. Don't waste bandwidth by using goatse or whatever. I prefer to just drop the request.

Note: on some servers, .* needs to be (.*)

not sure why yet..
Thanks for posting that!

Now how could you set that up so it blocks fusker, and say other sites as well such as url's that have "yahoo" in the referrer string?
nudecanada is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote