Web Application Firewalls (WAFs) like Cloudflare, AWS WAF, and others protect web applications by filtering and monitoring HTTP traffic. However, discovering the origin IP address behind these protective layers can be crucial during security assessments. This guide outlines various techniques to identify origin IPs.
Identifying the Presence of a WAF
Before attempting to bypass a WAF, first confirm its presence:
# Get the IP addressdig+shortexample.com# Check the organizationcurl-shttps://ipinfo.io/IP|jq-r'.org'
Common WAF Indicators:
AWS WAF: Look for "AWSLB" and "AWSLBCORS" cookies
Cloudflare: Organization info will indicate Cloudflare, Inc.
Other WAFs may have specific signatures or response headers
Techniques for Origin IP Discovery
1. Historical DNS Records
Historical DNS records often reveal IPs used before WAF implementation: