Skip WAF firewall rule for images in Pro plan

I created this WAF firewall rule and it works well :
(ip.geoip.country ne “XX” and not cf.client.bot)

I was just wondering if it’s possible in Pro plan to skip this rule for images and only images ? (by extension maybe)

Looks like I can’t use regular expressions.

Your best bet would be having your images in an /assets/ or /media/ folder which can be whitelisted.

These are all the fields available to you (HTTP response isn’t available in a firewall rule though): https://developers.cloudflare.com/ruleset-engine/rules-language/fields/

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