Block priceg.com referral spam traffic

Block priceg.com referral spam traffic

800x400

Again new spam traffic from priceg.com. I have been getting the referral traffic from priceg.com from today itself. By just looking at the referrer I doubt the url and did search for priceg.com and yes it’s a spam traffic. Priceg.com was redirecting to some website with kind of other language I didn’t understood. When I looked for priceg.com on Google it was before redirecting to aliexpress.com the same referral marketing here. Read below article for information on bad spam referral traffic.

What is bad referral traffic and avoid them

I have written all the articles to block and avoid the referral spam traffic. As previous darodar.com , economy.co and ilovevitaly.com were spamming many websites from all over the world this is a new domain may be from the same spammer from Russia.

Block darodar.com spam

Block ilovevitaly.co spama

Block economy.co spam

Block these all with single PHP javascript code

Something I get know about these spam traffic

I have written to block ilovevitaly.com darodar.com and economy.co with PHP, javascript and .htaccess codes. But for some users that method was not working and so I have written to block them with analytics filters. Many are saying that the spammers are manipulating the analytics code to display these spam traffic because the link of darodar.com was containing user ids of their analytics code and yes its true, because when my website was down no one was able to open a page on my website but when I looked at my analytics there was a real time visitor referral was darodar.com. But I don’t know exactly with other domains so try to implement the physical javascript and PHP code also.

Now lets block priceg.com referral spam traffic

I’m going to show only 3 methods to block priceg.com spam as these will do the work.

  1. Filter in analytics

Many users may have problem adding the code to their website so they can use this method to stop priceg.com from displaying in analytics properties. Read below article to use analytics filters to block priceg.com spam.

Block priceg.com spam traffic

  1. Javascript code

Add this code between head tag of your website. If any visit made from priceg.com then it will be redirected to google.com with this code.

<script type='text/javascript'>

 var blocklink = ['http://priceg.com'];

 for (var b = blocklink.length; b--;) {

 if (document.referrer.match(blocklink[b]))

 window.location = "http://google.com/";

 }

 </script>
  1. PHP code

This is the same javascript code above but its added using the PHP. You need to add this code in your theme folder’s header.php file between head tag.


 echo"<script language='javascript'>

 var blocklink = ['http://priceg.com'];

 for (var b = blocklink.length; b--;) {

 if (document.referrer.match(blocklink[b]))

 window.location = "http://google.com/";

 }
 </script>";

 ?>

If you want to use the .htaccess method which will block the visits from priceg.com referrer at server level then use below code and add it your .htaccess file.

SetEnvIfNoCase Referer priceg.com spamlink=yes

 Order allow,deny

 Allow from all

 Deny from env=spamlink

Hope this will help you. Share and comment for any info.



© 2017. All rights reserved.