Need To Block all visitors from a website from accessing mine

Hi All,

I was taking a look at my google analytics log this morning and noticed a massive spike in traffic and the traffic is coming all from the same site. Even though I don’t physically see my link in the offending site. I know that given the type of site and where all the visitors are coming from (typical spamming countries) that it is a pure spamming site masquerading as a legit site.

Can I use a script in .htaccess file to block all incoming traffic from this one site? I found a sample script on a Wordpress fourm even though I don’t have a Wordpress site.

SetEnvIfNoCase Referer thebadsiteurl.com spammer=yes
Order allow,deny
allow from all
deny from env=spammer

Thanks for the help

There probably is NO link from the offending site to yours,
but without trawling the code one cannot be entirely sure.
But it’s unlikey as they don’t get any SEO benefit.

What this sounds like is something called ‘Referer Bombing’,
this is when a spammer configures their web browser to lie
about where it has just come from.

Partly as a way of masking surfing history but mainly to
pique the curiosity of a webmaster to go look at the site
in great detail and so increases the page views they get.