Help blocking traffic from Electron and China

Not really used the WAF and security tools before in Cloudflare. Our website is receiving a HIGH volume of visits from both China and a source named Electron which we would ideally like to block. Has anyone experienced unwanted traffic from Electron previously? I have set up a rule for the traffic from China which I think is correct (See attached). I have also set up a rule to what I think will block the user agent Electron (See attached). Not 100% whether this is even correct way to go about blocking traffic from Electron... Any help appreciated.
No description
No description
6 Replies
Chaika
Chaika3w ago
Yea, those rules look fine, fw rules aren't too complex. Are you sure the User Agent equals exactly that and doesn't just contain it tho? You can always look under Security -> Analytics and see if they're working
Boldr
BoldrOP3w ago
I'm not entirely sure to be honest. It was being show in Microsoft Clarity as https://Electron
Boldr
BoldrOP3w ago
Do you think something like this might be better:
No description
Chaika
Chaika3w ago
yes more potential of false blocks but I don't think the average user agent should contain that? You can always use something lighter like Managed Channel or "Skip" with the Log matching to see what matches it first before straight up Blocking
Rowin
Rowin3w ago
If it shows up on Microsoft Clarity, aren't they legitimate users who for some reason visit your website embedded in an Electron app?
Rowin
Rowin3w ago

Did you find this page helpful?