© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•11mo ago•
6 replies
ruan

Security WAF rules doesnt work for Cloudflare tunnels?

I have created some rules at
DOMAIN > Security > Security rules
DOMAIN > Security > Security rules


For example:

(http.request.method ne “GET” and not len(http.request.headers[“upgrade”]) > 0 and not len(http.request.headers[“connection”]) > 0 and all(http.request.headers[“upgrade”][] ne “websocket”) and all(http.request.headers[“connection”][] ne “upgrade”))
(http.request.method ne “GET” and not len(http.request.headers[“upgrade”]) > 0 and not len(http.request.headers[“connection”]) > 0 and all(http.request.headers[“upgrade”][] ne “websocket”) and all(http.request.headers[“connection”][] ne “upgrade”))

https://i.imgur.com/LxiRh4a.png

Im testing a connection to my tunnel but the rules doesnt seen to work, for example i did a
POST
POST
request and it didnt got blocked
the rule was suppose to block any request thats not a
GET
GET


So, these rules doesnt apply to
Cloudflare tunnel
Cloudflare tunnel
?
Imgur
Preview image
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 WAF Rules
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
WAF Security and Rules
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
Cloudflare Tunnels Security Question
Cloudflare DevelopersCDCloudflare Developers / general-help
13mo ago
WAF rules for PRO plan
Cloudflare DevelopersCDCloudflare Developers / general-help
17mo ago