How to block new suspicious referrer SPAM (April 2015)

jaran

New member
Almost two months of this domain display referrers on my site (via histats) always appears the same domain name every day. The domain is when I check through the browser turns the site that leads to a spam bot site. And of course yes, all this domain was redirecting into semalt.com sites. As we know if semalt is one of bad referer SPAM which bringing bad traffic with high bounce rate into your site. And here what I get domain list of referer spam from histats :

1. buttons-for-websites.com
2. semalt.semalt.com
3 best-seo-solution.com

And how to ignore or block them ?

Simply, we can use htaccess rules to stop spam from ever showing up in our logs. And this is what we can do for now until they change referring links from time to time. And here we go how to setup the htaccess,

PHP:
# Referrer SPAM
<IfModule mod_rewrite.c>
# semalt
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)*semalt\.com [NC]
RewriteRule (.*) http://www.semalt.com [R=301,L]
# best-seo-solution
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)*best-seo-solution\.com [NC]
RewriteRule (.*) http://www.best-seo-solution.com [R=301,L]
# best-seo-offer
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)*best-seo-offer\.com [NC]
RewriteRule (.*) http://www.best-seo-offer.com [R=301,L]
# buttons-for-website
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)*buttons-for-website\.com [NC]
RewriteRule (.*) http://www.buttons-for-website.com [R=301,L]
# simple-share-buttons
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)*simple-share-buttons\.com [NC]
RewriteRule (.*) http://www.simple-share-buttons.com [R=301,L]
#buttons-for-your-website
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)*buttons-for-your-website\.com [NC]
RewriteRule (.*) http://www.buttons-for-your-website.com [R=301,L]
#Get-Free-Traffic-Now
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)*get-free-traffic-now\.com [NC]
RewriteRule (.*) http://www.get-free-traffic-now.com [R=301,L]
#sharebutton
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)*sharebutton\.net [NC]
RewriteRule (.*) http://sharebutton.net [R=301,L]
#buy-cheap-online
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)*buy-cheap-online\.info [NC]
RewriteRule (.*) http://www.buy-cheap-online.info [R=301,L]
</IfModule>

Put all string into htaccess and check your webstats on the next day. If anyone still get any problems, please to share right here. Thanks.
 

jaran

New member
Agreed @smalpierre, this is just not a robot. Its different case. Semalt using http referrer to spike our bandwith with junk traffic.
 
I go straight to Cpanel and block by IP or blocks of IP. This can also be done with .htaccess also.As I found that some sites will change their name slightly.For an example,your server has an assigned IP,even if its shared. Youcanchange your name of your site, but not the IP. So by blocking www.mysite.com will only work until its changed to www.mysite1.com. Now it can access your site again. Just use whois and it will give you the IP's they use.
 

jaran

New member
strokerace said:
I go straight to Cpanel and block by IP or blocks of IP. This can also be done with .htaccess also.As I found that some sites will change their name slightly.For an example,your server has an assigned IP,even if its shared. Youcanchange your name of your site, but not the IP. So by blocking www.mysite.com will only work until its changed to www.mysite1.com. Now it can access your site again. Just use whois and it will give you the IP's they use.
under the same conditions, block ip also can not prevent referrer spam if the domain is changed their ip address or server. We talk about referrer spam not only ip address. No matter what their ip if you still get the traffic from them and so they still sending traffic spam.