cloudflare rate limit rules

i have setup a rate limiting rule:
(not starts_with(http.request.uri.path, "/_next/")) or (http.host ne "r2.guns.lol") or (http.host ne "cdn.guns.lol")
(not starts_with(http.request.uri.path, "/_next/")) or (http.host ne "r2.guns.lol") or (http.host ne "cdn.guns.lol")
and when a video buffers it sends a bunch of 206 requests to r2.guns.lol (my r2 cdn) and it still rate limits it, even tho it should ignore that incoming request
2 Replies
Chaika
Chaika8mo ago
Think about it, if you want the rule not to execute in boolean logic, you want and right now you're saying execute if not r2 subdomain or if not cdn subdomain, which is always going to be true..
h
hOP8mo ago
yeah it worked now, i did not think at all thank you

Did you find this page helpful?