Too many bots from China

new_view

Member
Licensed customer
Is anyone experiencing a huge amount of views from China on GA4?

I suppose these could be LLMs or AI bots crawling every second.

Just wanna know if y'all XenForo users are experiencing the same.
 

Attachments

  • Screenshot (224).webp
    Screenshot (224).webp
    22.6 KB · Views: 19
Yes, this is fairly common.

If your site doesn't serve a Chinese audience then it would be recommended to just ban the entire country. If you use Cloudflare (even the free version) this can be accomplished in a couple minutes. If you don't use Cloudflare then there will be more work involved.

With the ban in place it will stop a large percentage of these hits, but not all, as there are always ways to get around something.
 
Is anyone experiencing a huge amount of views from China on GA4?
If you had looked around in the forum before posting the thread you had no doubt reconized that this is quite a common issue, comes in waves, countries change and also, if the traffic shows up in Google Analytics or not. The most active thread around the topic is this:

 
If you're running through WHM you have the option of banning countries through CSF.

Log in to WHM as root.
Navigate to Plugins -> ConfigServer Security & Firewall.
Click Firewall Configuration.
Find the Country Code Lists and Settings section:
CC_ALLOW_FILTER: Enter the 2-letter ISO country codes you want to allow (e.g.US,CA). All other countries will be blocked.
CC_DENY: Enter the 2-letter ISO country codes you want to block (e.g.CN,RU).
Click Change and restart the firewall (csf -r) to apply changes.
 
If you had looked around in the forum before posting the thread you had no doubt reconized that this is quite a common issue, comes in waves, countries change and also, if the traffic shows up in Google Analytics or not. The most active thread around the topic is this:


Cool, got it.
 
If you're running through WHM you have the option of banning countries through CSF.

Log in to WHM as root.
Navigate to Plugins -> ConfigServer Security & Firewall.
Click Firewall Configuration.
Find the Country Code Lists and Settings section:
CC_ALLOW_FILTER: Enter the 2-letter ISO country codes you want to allow (e.g.US,CA). All other countries will be blocked.
CC_DENY: Enter the 2-letter ISO country codes you want to block (e.g.CN,RU).
Click Change and restart the firewall (csf -r) to apply changes.

I kinda don't wanna ban all traffic from China.
 
Might have to block Singapore, too. I find a lot of the Chinese bots hitting my site are coming from data centers there that belong to or host Chinese companies (e.g. Huawei is one I know comes from Singapore).
 
Might have to block Singapore, too. I find a lot of the Chinese bots hitting my site are coming from data centers there that belong to or host Chinese companies (e.g. Huawei is one I know comes from Singapore).

I concur; in fact, Singapore was a contender in terms of bots.
 
Yeah, Cloudflare is the way to go here. Even on the free tier, you can set up a WAF rule that challenges traffic from specific countries instead of outright blocking them -- that way legitimate visitors from China can still get through a CAPTCHA, but the bots give up.

On my forum I also turned on Cloudflare's "Bot Fight Mode" (free) and their AI bot blocking under Security > Settings. Killed a ton of scraper traffic overnight without touching real users.
 
but the bots give up.
Given what has been written in the other thread about the experiences with cloudflares free tier vs. residential proxies and what the providers of resident proxies write about it ("no problem for us") I do have some doubts.

Did you read the extensive thread that is linked further up? There is a ton of information about the bot topic and various strategies to deal with them in it.
 
Back
Top Bottom