Someone's bypass Cloudflare Firewall

Hello everyone. I have small problem with Cloudflare firewall. I am using Cloudflare firewall to project website comments without captcha.

. But 2 days ago 1 bot bypassed Cloudflare image
I am using Authenticated Origin Pulls and I am blocked all ip except Cloudflare
no one access directly server but i cannot see ip adress on Cloudflare firewall. Ok, this bot how to send spam comment to my website ?.

That first match should do it. Is anything showing up in the Firewall Events Log?

It’s possible there’s some low-paid human spammer hitting your website.

This ip address does not appear on firewall log.

If you run a full fledged browser you’ll be able to bypass, respectively rather solve, a JavaScript challenge also in an automated fashion. There is/was even a Python library which approached that issue for non-browser instances using a Node.js instance to execute the JavaScript challenge.

That sort of challenge generally is quite effective but still does not provide you a 100% bot-exclusion rate.

But if the validation, the firewall should show the IP address, the problem is that the IP address does not appear.

I dont know what the screenshot you posted is. Can you get the request specific lines from your log file? That should show whether the request should have been challenged to begin with.

If you say it went via Cloudflare but there is no log in the firewall events, that would most likely mean it did not get challenged.

Those firewall rules look odd. If they’re followed in order, I’m not sure if that first entry is supposed to block all TCP ports, or let everything through. Then the second entry looks like it’s allowing only Cloudflare access to Port 443.

Can you post the domain name so we can test it out?

These ara normal firewall rules. Block all tcp and udp incoming except Cloudflare ip and port 443. Please be careful. first post i say Authenticated Origin Pulls is active and i dont forget configure on server side.

If you can rule out a direct connect there simply was no challenge.

i block all non Cloudflare trafic. First protection vps firewall , second protection Cloudflare client certificate. No one can reach without Cloudflare.

Well I addressed that already twice.

1 Like

Use “Block” instead of “JS Challenge”.

So no one will be able to bypass.

What JS Challenge does is it checks for IP reputation of visitor and if its good, it allows.

A JavaScript challenge will always challenge, regardless of any “reputation”.

The problem here is not whether to block or to challenge but the OP claims the request came via Cloudflare, was challenged, but does not show up in the event list, and this part has been addressed several times by now.

1 Like

start from your server logs find that request and check if it really came from Cloudflare

Nobody can access from the outside of Cloudflare

challenge is not ip based. i dont need a block comments. if i need i can modify php file or i will create new nginx rule. I am using for blocking bots.

Sorry, not going to address it for a fourth time :wink:

Please re-read what has been already mentioned three days ago.

How many comment was submitted from that IP?

1 but we get 3 more comment like this from other ips.

This topic was automatically closed after 30 days. New replies are no longer allowed.