ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข4mo agoโ€ข
2 replies
mouviel

cloudflare firewall blocking legit api requests

hey guys im having a weird issue with my site
frontend is on domain.com and backend is on api.domain.com both running on same vps and both proxied through cloudflare
everything works fine until i turn on my custom firewall rule to block bad user agents
right after i enable it my frontend cant connect to the api anymore even when theres no ddos going on
i already added all cloudflare ipv4 ranges to my server firewall so only cloudflare can reach it
but the rule still blocks normal traffic somehow
any idea how i can keep the bad ua protection without breaking api requests
should i exclude api.domain.com from the rule or is there a better way
thanks in advance
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cloudflare OWASP Core Ruleset blocking legit requests
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
Cloudflare requests not reaching the Firewall
Cloudflare DevelopersCDCloudflare Developers / general-help
16mo ago
Firewall rules in Cloudflare API
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
Firewall is blocking some legitimate traffic to our API servers
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago