What kind of traffic with share buttons.xyz and how to fight it?

Good afternoon. Today in my Google Analytics report and saw an unusual source of traffic with share buttons.zyx I explained that it was referral spam. I googled, about realized it, but until the end and did not understand what it brings to my site. And how to get rid of it? I understand, it is necessary settings in Analytics do have something in .htaccess has to register?
July 9th 19 at 13:43
1 answer
July 9th 19 at 13:45
I'm usually in .prescribe the following htaccess directives:

## ############################## BOT BANNING #################################

order allow,deny
deny from 217.23.11.15
allow from all

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?share-buttons.zyx.*$ [NC]
RewriteRule .* share-buttons.zyx [L]

RewriteCond %{HTTP_USER_AGENT} share-buttons.zyx [OR]
RewriteRule ^(.*)$ – [F,L]

## ############################## BOT BANNING #################################
Thanks for the advice. But my hosting does not support .htaccess is there any other method to do this? - andres66 commented on July 9th 19 at 13:48
There are two ways of fighting with respigam. 1) Prescribe all necessary directives .htaccess 2) make all necessary settings in Google Analytics. Most comprehensive guide to combat respigam that I have encountered is described here odesseo.com.ua/borba-s-ref-spamom-v-google-analytics - tina7 commented on July 9th 19 at 13:51

Find more questions by tags Google AnalyticsSearch engine optimization