L
L
Li4ik2015-12-29 18:55:41
Google Analytics
Li4ik, 2015-12-29 18:55:41

How to stop Google Analytics referral spam?

Refspam often hit my site. Most frequent links:
adf.ly
black-friday.ga
santasgift.ml
w3javascript.com
claim67040902.copyrightclaims.org
traffic2cash.xyz
I set filters in Analytics, but for some reason they don't work. Knocks out an alert - remove filters that are not used. I found the info in the net and did it as it was written there (here on the screen) - 3b7308b0dbdd4c70830a8adf183b4020.jpg
and the Save button.
Question 1 : Why don't filters work? I watched how to make filters from the bourgeois site botcrawl.
Then I decided to ban the above links in .htaccess.
Question 2 : Is it correct to insert the code before the closing ifModule or as it is in .htaccess?
# BEGIN WordPress
Rewrite Engine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^ http://.*adf.ly/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^ http://.*black-friday.ga/ [NC ,OR]
RewriteCond %{HTTP_REFERER} ^ http://.*santasgift.ml/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^ http://.*w3javascript.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^ http://.*claim67040902.copyrightclaims.org/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^ http://.*traffic2cash.xyz/ [NC]
RewriteRule ^(.*)$ - [F,L]
# END WordPress

Answer the question

In order to leave comments, you need to log in

4 answer(s)
L
Li4ik, 2016-01-17
@Li4ik3

ok, thanks everyone. I solved the problem by specifying the following rule in .htaccess for each site:
- RewriteCond %{HTTP_REFERER} adf.ly [NC]
So far, everything has stabilized.

P
PlanetaFx, 2016-01-07
@PlanetaFx

I use such a filter
helps great
web-analytic.ru/kak-ochistit-otchyoty-analitiks-ot...

D
Dmitry, 2015-01-03
@prolis

To the first question: The
filters work, but:
1. There is a limit on the number of characters in a line, so it is necessary to distribute banned domains across two filters, here are two of mine for the com-zone:
darodar*|semalt*|buttons*|blackhatworth*|ilovevitaly*| prodvigator*|cenokos*|cheap*|sucks*|theguardlan*
and
porn*|traffic*|ranksonic*|cash*|hulfingtonpost*|4webmaster*|monetizer*|seo*|event-tracking*|e-buyeasy*|copyrightclaims *|oo-8-oo*|googlemare*|webvisor*|website*
2. Filters are only applied to data received after the filter was implemented.

P
pilulkayullka, 2016-01-08
@pilulkayullka

the filter doesn't work because the point was not escaped. i.e. before "." you need to put "\"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question