As an update to my block on desktops and whats new (with a referer) rule 2. It is still stopping virtually all of the bots - the residential proxies - it doesn't block members and has a referer for genuine guests (the bots don't carry a referer). It then moved to being mainly US hosting/data centres (not residential), the ASN's for which are now being challenged and mostly stopping them.
As expected, some (a small amount) of residential proxies from the desktop block rule, migrated by starting to using mobiles, some started adding a referer. However that particular group didn't solve challenges at the next rule and were stopped.
So of the ones that don't go to Whats new or other challenge paths, I had the remainder analysed by Claude. They were all desktop ones again but using older versions of Linux Chrome or Windows Chrome - they either bypassed rule 2 due to using mobiles or a referer - or bypassed rule 2 because they weren't going to whats new, search, members, threads or posts.
So set up a new fingerprinting challenge rule 3 for those last night (Claude created that rule so I tried it) and that stopped most of them - some still solved the challenge but not many. The Windows Chrome ones were left out of that rule as they solved challenges.
Of the Windows Chrome ones, that solve challenges and get to the server (a small pool but I suppose it could get bigger) they were all US and using Windows Chrome 144 (residential proxies), and a few on Windows Chrome 146 (Microsoft Azure) that solved challenges
So it has narrowed down which ones can solve challenges. Part of doing all this is so I can remove the country challenge for the US. It's the US that is the biggest issue at the moment. I could let all of them on and just live with it. But then it might increase and it rankles slightly letting them through when they solve challenges.
It's not such a bad thing that genuine US guests get a Cloudflare challenge, but I'd like to stop the bots as much as possible and remove the US country challenge so genuine US visitors don't get a challenge.
So thinking about what to do about the small pool that solve challenges. I'd like to block them but that risks blocking genuine guests with older browsers. So options at the moment are:
1) Do a redirect rule for the Windows Chrome 144 with a friendly html page for genuine guests - but problematic really.
2) Just accept them getting through. I might as well lift the US country challenge anyway as they solve the challenge and get through anyway
3) Something Claude suggested, which I quite like the idea of - which is leave the whole of the US challenged but allow mobile users to pass it as most users are mobile users and there are no bots using mobiles getting that far - at the moment. The Windows bots that can solve challenges would still get through but there aren't that many, but that challenge is still blocking others. If the numbers increased, I could look again. Edit: I've done that now, so hardly any genuine US guests get challenged.
This is the remaining pool - small numbers compared to what's been happening before. And really I don't need to stop anything else as the numbers are so low. So it's more for the sake of it.
The groups that get through to the origin (ie solve challenges)
| Group | What it is | Gets past challenges? |
|---|
| Windows Chrome/144 | 129 IPs in 22h, mostly US home ISPs (Comcast, Verizon, Charter) plus Colombia and Ecuador. 337 requests. | Yes, they passed challenges (first requests on rule 4 paths without a referer reached the origin). |
| Windows Chrome/146 (Microsoft/Azure) | 137 IPs, all US, only the two service-worker files, 286 requests. | Unknown. They never request real pages, so I can’t say if they solved anything. It’s a separate group from the 144 ones. |
| Linux Chrome/154 | 80 IPs before your 01:50 change, 44 after. | Partly. Rule 3 roughly halves them. |
| Mac Chrome/142 | 5 IPs reached the origin. | Mostly stopped. |
This is the new rule 3 which challenges some ASN's (US hosting sites mainly that were found to be sending bots), and the fingerprinting rule.
Would be grateful for
@Anthony Parsons take on the fingerprinting part to see if it's ok.
Challenge rule 3
((ip.src.asnum in {212238 212286 30058 204139 210906 204646 203346 203020 9009 3257}) or (http.user_agent contains "X11; Linux" and http.user_agent contains "Chrome/154" and not http.user_agent contains "CrOS") or (http.user_agent contains "Macintosh" and http.user_agent contains "Chrome/142")) and not cf.client.bot and not http.cookie contains "xf_user"
So my rules at the moment are
1) Block rule - a few countries and ASN's and Anthony's fake bots rule
2) Block rule - specific desktops going to whats-new - with a referer for genuine guests
3) Challenge rule - US data centre ASN's and fingerprinting (as above).
4) Challenge rule - whats new, members, search, ams, threads, posts, misc/cookies
5) Challenge rule - countries - including US but not Uk - this is a catch all for paths not addressed earlier. Previously US was allowed through but now they are all coming from the Us I had to include it here temporarily.
All with not cf.client.bot and allowing xf_user. Rule 4 has a referer so genuine guests don't get challenged. Bots with a referer get challenged at rule 5. I could combine some of these challenge rules to free up slots but am monitoring at the moment.
It's stil a bit of an experiment the rule 2 though. It was manageable before but I had no control over rising numbers. So at the moment it's not so much about the numbers - but about knowing what's what.
Right now, on my site, and for the past 2 days, I only have members, verified robots and genuine guests - between 28 and 45 at various times - with the odd one or two ip appearing that is a bot occasionally. It's a small forum. No genuine guests are being blocked - except from the country and ASN blocks where I wouldn't normally have members. However the other reason for doing this is there are some countries I would like to unblock - Philippines, Thailand, Brazil and Mexico as I would potentially have members from there - very rarely but it has happened - but those countries are too problematic until the rest is slowed down. Might have to just accept that.
It would be interesting to see what happened though. But maybe those are the countries with the bots that solve challenges.
Edit - asked Claude to check previous logs for Thailand and Philippines before I blocked them again and nearly all desktop but all carried a referer, and they also solved challenges, so they would definitely get through again. So leaving them blocked for now. They were part of a big swarm.
Thought some of this might be helpful to others although different sites have different circumstances etc. Having said that I think blocking specific desktops exempting xf_user and with a referer to avoid blocking genuine guests - might be an option for other sites as well? Providing the bots are only going to whats new and providing the bots don't have a referer. Which this swarm hitting me didn't have. But it only worked because Thailand Philippines were blocked (amongst others like China).