Click to See Complete Forum and Search --> : Blocking a link from a site?


tracknut
08-05-2008, 11:33 PM
Got a new situation for me. I have a hobby site that gets very low traffic, something on the order of 10 visitors a day. Yesterday that jumped up to about 150, and it continued today. Chasing down where this is being referred from, I found it was coming from a racist site in Russia. I'm not sure this is adding much to my Google rankings, and I'd just as soon make this go away.

Aside from changing the name of the page they've linked to, is there any more permanent way I can block a referral from this particular site? I'm running Apache.

Thanks,
Dave

scragar
08-06-2008, 01:03 AM
http://www.techvat.com/adding-a-referer-specific-redirect-to-your-htaccess-file.html

just send them all to google or something.

tracknut
08-06-2008, 03:09 PM
Thank scragar, I got it working with a slightly different syntax than the one you linked. It gives the user a 403 Forbidden error instead of routing them off somewhere else. I'll document it here for posterity


RewriteEngine on
RewriteCond %{HTTP_REFERER} bad-domain\.com [NC]
RewriteRule .* - [F]


Dave