Block spam traffic from Google Analytics
You can use a combination of 2 filters to stop all spam in Google analytics:
- A valid host name filter that takes care of all phantom spam in any form (referral, organic or fake direct visit)
- Campaign source filter with an expression created with all known scanner spammers.
As an additional feature, you can enable the built-in function "Exclude all hits from known bots and spiders", this option will exclude all traffic from bots / crawlers that are not spam, but they also do not visit people.
Read more here http://www.ohow.co/what-is-referrer-spam-how-stop-it-guide/
Block spam traffic from cPanel
You can use IP Deny Manager in cPanel to block spam referrals.
You can read here http://geekflare.com/block-spam-referral-traffic-to-your-website-through-cpanel/
source share