Cloudflare WAF Rule not working correctly

(not http.user_agent contains " python-requests" and http.user_agent ne "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36" and http.user_agent ne "Mozilla/5.0")

This rule should block user agents which do not equal the ones above and do not contain python-requests. The does not equal statements work perfectly fine but if the useragent contains python-requests it’s still blocked

You have a space before “python-requests” - check the Expression preview

Loose the space and it should work as expected

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.