.htaccess - Blocking automatic Spam Traffic -
i saw website receiving spam traffic floating-share-buttons.com, get-free-traffic.com, event-tracking.com, forum.topic64300434.darodar.com, etc. automatically. searched on google , found way block using htaccess file. code found below -
rewriteengine on rewritecond %{http_referer} ^http://.*ilovevitaly\.com/ [nc,or] rewritecond %{http_referer} ^http://.*ilovevitaly.\.ru/ [nc,or] rewritecond %{http_referer} ^http://.*ilovevitaly\.org/ [nc,or] rewritecond %{http_referer} ^http://.*ilovevitaly\.info/ [nc,or] rewritecond %{http_referer} ^http://.*iloveitaly\.ru/ [nc,or] rewritecond %{http_referer} ^http://.*econom\.co/ [nc,or] rewritecond %{http_referer} ^http://.*savetubevideo\.com/ [nc,or] rewritecond %{http_referer} ^http://.*kambasoft\.com/ [nc,or] rewritecond %{http_referer} ^http://.*buttons\-for\-website\.com/ [nc,or] rewritecond %{http_referer} ^http://.*semalt\.com/ [nc,or] rewritecond %{http_referer} ^http://.*floating\-share\-buttons\.com/ [nc,or] rewritecond %{http_referer} ^http://.*get\-free\-traffic\-now\.com/ [nc,or] rewritecond %{http_referer} ^http://.*event\-tracking\.com/ [nc,or] rewritecond %{http_referer} ^http://.*darodar\.com/ [nc] rewriterule ^(.*)$ – [f,l]
i want know whether code best solution or not. author of code saying code block spam traffic. want know whether or not? there better solution? , code spam bots?
no, isn't solution, that code won't work of referrals on list. ones blocked using htaccess file semalt , buttons-for-website
rest won't have effect.
we can split spam in google analytics in 2 categories ghosts hit google analytics reports , never accesses site , crawlers name implies crawl site therefore access.
since ghost spam doesn't interact website @ server-side solution htaccess won't have effect. to stop ghosts must use filters in ga
you can find detailed information in related questions.
Comments
Post a Comment