> For the complete documentation index, see [llms.txt](https://notebook.iuriioapps.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notebook.iuriioapps.com/cloud/aws/networking/waf.md).

# WAF

* AWS WAF is a web application firewall that lets you monitor the HTTP and HTTPS requests that are forwarded to CloudWatch or an ALB to to API Gateway. WAF also lets you control access to your content.
* You can configure conditions such as what IP addresses are allowed to make this request or what query string parameters need to be passed for the request to be allowed, and then the ALB or CloudFront will either allow this content to be received or to give HTTP 403.
* You can define conditions by using characteristics of web requests such as:
  * IP addresses that requests originate from
  * Country that requests originate from
  * Values in request headers
  * Strings that appear in requests, either specific strings or strings that match regular expressions
  * Length or requests
  * Presence of SQL code that is likely to be malicious
  * Presence of a script that is likely to be malicious (XSS attack)
* At its most basic level, WAF allows 3 different behaviors:
  * Allow all requests except the ones that you specify
  * Block all requests except the ones that you specify
  * Count the requests that match the properties that you specify


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://notebook.iuriioapps.com/cloud/aws/networking/waf.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
