How to Block Spam Bot Referral Traffic From darodar, ilovevitaly, hulfingtonpost and blackhatworth
You might be aware about darodar, econom, ilovevitaly referral spam traffic and now the new rising is hulfingtonpost and blackhatworth as these are spam traffic that are showing in Google Analytics as referral traffic but this is spam and is not good for website. We are going to show you how we can block these spam referral traffic with just single javascript code or php code. You only need to add some simple code in your website.
If you are getting referral URL in Google Analytics that looked a bit like this:
This is a Russian spam network that entices webmaster and it show as affiliate links in Google Analytics. This is a black hat SEO (old time affiliate marketer) techniques that showing in our Analytics result. They simply put 301 redirection and website (darodar referral spam) redirect to any other website.
Here are few steps to block this spam traffic in your Analytics:
1. Block Darodar.com, econom.co etc through .htaccess: Simply add below code in your .htaccess file
SetEnvIfNoCase Referer darodar.com spambot=yes
Order allow,deny
Allow from all
Deny from env=spambot
It basically sets a variable called “spambot” – then it assigns all visits from spam sites as that variable. Then it block that variable from entry to your website.
2. Filter Spam Traffic in Google Analytics: If you want to identify real traffic that comes to your pages you can use bot and filtering options in Google Analytics.
You need to go: Admin -> View -> View Setting You will see screen like below:
Now use below instructions:
3. Add Code in website Header: Add below code in website head tag means before closing head tag:
<script type=’text/javascript’>
var blocklink = ['http://darodar.com', 'http://econom.co',’http://ilovevitaly.com];
for (var b = blocklink.length; b–;) {
if (document.referrer.match(blocklink[b]))
window.location = “http://google.com/”;
}
</script>
php website user has to add below code in header.php file of theme folder:
<?php
echo”<script language=’javascript’>
var blocklink = ['http://darodar.com', 'http://econom.co',’http://ilovevitaly.com'];
for (var b = blocklink.length; b–;) {
if (document.referrer.match(blocklink[b]))
window.location = “http://google.com/”;
}
</script>
“;
?>
Please share this blog and comment when any unknown traffic shows in your analytics or if you have any question regarding spam traffic.
Spammy Referral Websites List:
forum20.smailik.org
o-o-6-o-o.com
humanorightswatch.org
darodar
econom
ilovevitaly
hulfingtonpost
blackhatworth
bestwebsitesawards.com
mail.ilovenewdelhi.com
social-buttons.com
buttons-for-website.com
s.click.aliexpress.com
sexyteens.hol.es
buy-cheap-online.info
theguardlan.com
googlsucks.com
free-share-buttons.com
us.wow.com
pornhub-forum.uni.me
pornhub-forum.ga
generalporn.org
amanda-porn.ga
meendo-free-traffic.ga
sanjosestartups.com
semalt-semalt
yourserverisdown
e-buyeasy
sexyali.com
qualitymarketzone.com
event-tracking.com
chinese-amezon.com
Additional resources
Here is list of other great posts If you are looking for more info of spam traffic
https://moz.com/blog/how-to-stop-spam-bots-from-ruining-your-analytics-referral-data
http://blog.raventools.com/stop-referrer-spam/
http://www.quora.com/How-do-I-block-spam-bot-referral-traffic-through-darodar-econom-and-ilovevitaly
Comments