Dynadot

guide How to block traffic from a specific country using Google analytics?

Spaceship Spaceship
Watch

dennis_smith

Established Member
Impact
6
I blocked spam referral n social traffic sites but daily attack from different sites so give me solution for it whether blocking country traffic helps or not.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
You can't block it because most of these visits are from API calls and never touch your site. You have to filter it in google analytics. Google it. Filtering to only allow approved hostname(s) will get rid of most of it.
 
0
•••
You can use the plugin wordfence and specify the IP's from where you receive spam traffic. alternatively you can block traffic using .htaccess
 
0
•••
You can't block the traffic form a country but can filter it in google analytic via setting up filters
 
0
•••
Back