CDN & WAF Rule Generator

Visually build advanced routing and security rules for enterprise networks.

Rule Configuration

If traffic matches...

Generated Cloudflare Code

Select conditions to generate code...

Mastering Edge Routing & WAF Syntax

Cloudflare Expressions

Cloudflare uses a Wireshark-inspired language called Wirefilter. Learning exactly when to use http.request.uri.path versus http.request.full_uri can be tricky. Our builder handles the exact variable mapping automatically.

NGINX PCRE Regex

NGINX relies heavily on Perl Compatible Regular Expressions (PCRE). Writing a safe location ~* ^/api/ block requires careful escaping to prevent 500 Internal Server errors. Our translation engine safely escapes your strings.

AWS WAFv2 JSON

Unlike standard text rules, AWS WAF configurations are built using highly nested JSON structures. Our tool converts simple logic (like "User Agent contains bot") into full AWS ByteMatchStatement JSON payloads instantly.

Frequently Asked Questions

Can I convert Apache .htaccess rules to NGINX?

Yes. Many developers migrate from Apache to NGINX and struggle to convert RewriteRule and RewriteCond directives. Build your routing logic in our visual builder, then freely click between the Apache and NGINX tabs to see the exact syntax translation.

What is the difference between "Matches Regex" and "Contains"?

"Contains" does a simple substring search (e.g., searching for "wp-admin" anywhere in the URL). "Matches Regex" allows you to use complex pattern matching (like `^/api/v[1-9]/`), which is more powerful but computationally heavier on edge servers like Akamai or Cloudflare.

Does this tool send my rules to a server?

No. Your security architecture is highly sensitive. We built this translation engine entirely in JavaScript, meaning 100% of the rule generation happens locally in your web browser. Nothing is ever logged or tracked.