WAF Detection: Understand and Use the Results
Detect Web Application Firewall
WAFs: the security layer that sits in front of your website
A WAF (Web Application Firewall) is a security layer that sits in front of your website and inspects every incoming HTTP request before forwarding it to your actual application server. The WAF's job is to detect and block requests that look like attacks — SQL injection attempts, cross-site scripting payloads, known vulnerability exploits, malicious bot traffic, denial-of-service patterns — based on a continuously updated set of rules. Some WAFs are software you run on your own server (like ModSecurity); most modern ones are cloud-hosted services that you point your DNS at, like Cloudflare, AWS WAF, Akamai Kona, Imperva, or Fastly's Signal Sciences.
You should care because **a WAF is one of the few security layers that can protect a vulnerable application from being exploited before the application itself is patched**. The classic story is the company that discovers a critical vulnerability in a third-party library at 9 PM Friday — and uses a WAF rule to block exploitation traffic at the network edge by 9:15 PM, buying the engineering team the entire weekend to patch the actual code. Without a WAF, the only option is the emergency patch. With a WAF, you have a buffer.
The five things every WAF detection check looks at:
Is the domain proxied through a known WAF provider? Cloudflare, Akamai, Imperva, Fastly, AWS, F5, Barracuda, Sucuri — each leaves recognizable headers, response patterns, or IP ranges.
What is the WAF policy mode? Block, challenge, log-only? A WAF in log-only mode is just an alarm system, not a defense.
Is rate limiting configured? A WAF without rate limits is easier to bypass with brute-force attacks.
Are bot-management features enabled? Most modern WAFs include tools to distinguish legitimate bots (search engines, monitoring) from malicious ones.
Is the WAF actually being bypassed? A common misconfiguration is exposing the origin server's IP directly, which lets attackers route around the WAF entirely.
Three questions a WAF check answers:
Is this domain protected by a WAF, or is the origin server fully exposed?
Which WAF provider is in use, and at what level of protection?
Could an attacker bypass the WAF by finding the origin IP?
The cost of running without a WAF is the loss of the buffer between "vulnerability discovered" and "vulnerability patched." For high-traffic or high-value sites, that buffer is the difference between an embarrassing email and a public security incident. WAFs are not a substitute for secure coding — but they are an excellent defense in depth on top of it. The OWASP ModSecurity Core Rule Set is the canonical open-source WAF ruleset and the starting point for most custom policies.
The WAF Detection endpoint, in plain language
Detect Web Application Firewall
WAF detection is essential for security assessments (knowing what defenses are in place), troubleshooting (identifying if a WAF is blocking legitimate traffic), and competitive intelligence (understanding infrastructure choices). For penetration testers, WAF awareness is critical for adjusting testing methodology. For operations teams, knowing the WAF provider helps diagnose false positive blocks on API (Application Programming Interface) traffic.
What is actually happening when you call it
Makes an HTTP (HyperText Transfer Protocol) request to the domain and analyzes multiple detection signals: WAF-specific response headers (cf-mitigated, cf-ray, x-sucuri-id, x-akamai-transformed), server header patterns, Set-Cookie signatures (__cf_bm, cf-chl-bypass, incap_ses_, aws-WAF-token), response body patterns (block pages, challenge pages), and HTTP status-code semantics (403/406 → WAF block, 429 → rate limit, 1020 → Cloudflare block, 1009 → country block). Returns provider list with confidence + evidence + signature provenance (last_verified_at, source_url), plus an `enforcement_signal` of low/medium/high/verified distinguishing "provider in front of origin" from "provider actively enforcing."
Why this specific tool matters
Choose a task: Security Assessment. Identify WAF presence before testing to adjust methodology accordingly.
Run the WAF Detection request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the WAF Detection reference to check the field definitions and supported options.
Available on the developer plan. The technical details: `GET /v1/domain/waf`.
When would I actually use this?
Security Assessment
Identify WAF presence before testing to adjust methodology accordingly.
Use the finding: Plan penetration tests with WAF evasion considerations.
Competitive Analysis
Understand which WAF solutions competitors use for security.
Use the finding: Inform WAF selection based on industry adoption.
Troubleshooting
Identify if a WAF is blocking legitimate requests to APIs or services.
Use the finding: Diagnose connectivity issues caused by WAF blocks.
The easiest way: just ask your AI assistant
Connect the MCP server. Just ask in plain English:
Use domain_waf with domain=https://example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.
Confirm the tool and inputs in the client before accepting its summary. For WAF Detection, use the response fields below to separate observations from recommendations.
The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.
The technical way: call it from code
This WAF Detection request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the developer plan or higher; adapt the target to your task.
curl --request GET 'https://api.edgedns.dev/v1/domain/waf?domain=https%3A%2F%2Fexample.com' \
--header "Authorization: Bearer YOUR_API_KEY"Prepare inputs for WAF Detection
Start with the inputs below. Keep the same hostname, path, and options when comparing WAF Detection observations. The API reference contains the complete parameter contract, optional settings, and access requirements.
| Field | Type | Required? | What it means | Example |
|---|---|---|---|---|
domain | string | Yes | Domain or full URL (web address) — accepts `example.com` or `HTTPS://example.com/path`. | https://example.com |
Interpret WAF Detection findings
Read these fields alongside the full response from your WAF Detection check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.
| Field | Type | What you'll see in it |
|---|---|---|
domain | string | The queried domain (bare hostname). |
url | string | Full URL (web address) that was fetched, echoing the protocol used in the request. |
detected | boolean | [deprecated] Use `provider_present`. Whether a WAF signature matched. |
Words you might be wondering about
IP (Internet Protocol address) — A unique number that identifies a computer on the internet, like a phone number for a server.
API (Application Programming Interface) — A way for one program to ask another program for something — like a waiter taking your order to the kitchen.
HTTP (HyperText Transfer Protocol) — The language web browsers and websites use to talk to each other.
Need Programmatic Access?
Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.