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

前端 未结 14 2416
北海茫月
北海茫月 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条回答
  •  萌比男神i
    2020-11-22 17:20

    We have found that using htaccess is a good way to stop these spams. I have implemented below solution on my clients site which is working really well so far. Best way is to stop them by contains clause, e.g. spam priceg.com check for priceg in referrer url.

    Because many of these sites are creating sub domains and re hitting and when they tweak the url, hard coded conditions fail

    RewriteCond %{HTTP_REFERER} (priceg) [NC,OR]
    RewriteCond %{HTTP_REFERER} (darodar) [NC,OR]

    It is explained in detail here

提交回复
热议问题