How to Block Spam Referrers like darodar.com from Accessing Website?

前端 未结 14 2249
北海茫月
北海茫月 2020-11-22 16:22

I have several websites that get daily around 5% of visits from spam referrers. There is one strange things I noticed about this referrers: they show in Google Analytics, bu

相关标签:
14条回答
  • 2020-11-22 17:20

    I think that the most effective way to avoid ghost spam is to add a custom dimension that let you know the site was indeed visited, because as we know they never visit the site.

    ga('set', 'dimension1', "Hey I'm really here!!");
    ga('send', 'pageview');

    You should simply add this lines in your pages and then add a filter to "include" only when the dimension has the expected value ("Hey I'm really here!!") in this case

    0 讨论(0)
  • 2020-11-22 17:21

    According to this entry, they are never visiting your site, they are faking HTTP request to GA using your UA-code. So, it seems it's pointless to block them using .htaccess or any other method, because they never actually enter to your site, they are only sending fake "visit" data to Google.

    0 讨论(0)
提交回复
热议问题