Waf Diagram
A waf diagram maps how web traffic flows through a web app firewall before reaching servers. You draw it by placing the firewall between public users and your app load balancer. Teams use this map to plan network rules and stop bad web requests early. Still, perimeter maps often leave internal tools and database sessions with broad, unchecked permissions. How a waf diagram maps web traffic A clear waf diagram starts at the public edge of your network. Users send web requests from their browse
AWS WAF: the complete guide
Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.
A waf diagram maps how web traffic flows through a web app firewall before reaching servers. You draw it by placing the firewall between public users and your app load balancer. Teams use this map to plan network rules and stop bad web requests early. Still, perimeter maps often leave internal tools and database sessions with broad, unchecked permissions.
How a waf diagram maps web traffic
A clear waf diagram starts at the public edge of your network. Users send web requests from their browsers to your domain name system. The domain system routes those requests to a content network or edge firewall. This firewall checks every incoming request against a list of known attack patterns.
The firewall looks for bad SQL strings and cross-site scripts inside the web traffic. If a request matches a block rule, the firewall drops it right away. Safe traffic moves past the firewall and hits your internal load balancer. The load balancer then sends the clean request to your web app servers.
Your app servers read the request and talk to your backend databases. Teams draw these steps as boxes and arrows to show trust zones. The public internet sits in an untrusted zone on the left side. The firewall acts as the border guard in the middle of the chart. Your app servers and data stores sit in a private zone on the right.
Where to place rules in your network flow
When you draw your network map, you must pick where the firewall lives. Many teams place a cloud firewall at the edge with their content network. This setup blocks large floods of fake traffic far away from your servers. It also caches static files so your main servers do less work.
Other teams place the firewall right in front of the app load balancer. This setup lets network admins keep tight control over local traffic rules. In both cases, the firewall reads traffic headers and body text in flight. You must also map where TLS encryption stops and starts along the path. The firewall needs to read plain text to spot hidden attack strings.
Once the firewall checks the text, it sends the traffic to the app. Your map should show which ports and protocols can cross each border. Clear labels help your team spot open paths that attackers might use.
AWS WAF: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
What edge firewalls solve and what they miss
A web firewall is great at stopping automated bots and basic web attacks. It keeps public junk traffic from crashing your main web servers. It also gives security teams a single place to block bad IP addresses. Your waf diagram proves to auditors that public web traffic faces a check.
Still, an edge firewall only sees traffic coming from the public web. It does not see what engineers or scripts do inside the private zone. Once a developer logs in to a server, the edge firewall does nothing. Internal users often share broad roles that let them run any command.
The edge setup decides what public traffic enters the network border. It cannot check individual database queries or admin commands run by your team. It also cannot rewrite sensitive fields like emails, phone numbers, or card numbers. If an app or user pulls raw tables, the firewall lets it pass. Teams need deeper controls inside the private zone to watch direct data sessions.
Check database and API queries on the wire
Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev sits inline in the wire protocol beside those services as an open-source proxy, a sidecar for your Postgres or API. On every query an AI agent or engineer runs against production, hoop.dev decides to pass, mask, block, or hold it for human review.
Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run, and hoop.dev data masking rewrites matched sensitive values in responses in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.
Frequently asked questions
What are the main parts of a waf diagram?
The main parts are public users, the DNS router, and the web firewall. Behind the firewall, you draw the load balancer, app servers, and databases. Arrows show how requests move between these parts.
Does a web firewall protect direct database sessions?
No, a web firewall only inspects HTTP and HTTPS web traffic at the edge. It does not check direct database queries or SSH sessions from internal engineers. You need internal session controls to watch those actions.
Should the firewall sit before or after the CDN?
Most teams run the firewall inside the CDN at the network edge. This stops bad traffic before it reaches your cloud network or load balancer. It saves bandwidth and keeps attack traffic away from your servers.
Related guides
In this post