This is really messing with my Analytics. I've previously blocked Semalt with the following code in my .htaccess
SetEnvIfNoCase Via evil-spam-proxy spammer=yes
SetEnvIfNoCase Referer evil-spam-domain.com spammer=yes
SetEnvIfNoCase Referer evil-spam-keyword spammer=yes
SetEnvIfNoCase Via pinappleproxy spammer=yes
SetEnvIfNoCase Referer semalt.com spammer=yes
SetEnvIfNoCase Referer poker spammer=yes
Order allow,deny
Allow from all
Deny from env=spammer
However I don't really know how the code works, it appears to be blocking other bots too (I think) but the code seems a little different for some of them. How can I adapt this to account for rank-checker.online also?
Update
I've updated my .htaccess file with the following code:
# block spam bots
RewriteCond %{HTTP_REFERER} ^http://.*semalt\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*rank-checker\.online/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*site-auditor\.online/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*monetizationking\.net/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*fix-website-errors\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*free-video-tool\.com/ [NC]
RewriteRule ^(.*)$ – [F,L]
However I am still getting some bots visiting my analytics. For example today I had a few referrals from monetizationking.net despite it being in my blocked list above.
User-Agent
(although whether that works reliably will be dependent on the bot).