Cloudflare Docs
Rules
Visit Rules on GitHub
Set theme to dark (⇧+D)

HTTP Request Header Modification Rules

You can manipulate the headers of incoming HTTP requests through HTTP Request Header Modification Rules. Through these rules you can:

  • Set the value of an HTTP request header to a literal string value, overwriting its previous value or adding a new header to the request.
  • Set the value of an HTTP request header according to an expression, overwriting its previous value or adding a new header to the request.
  • Remove an HTTP request header from the request (remove all headers with the provided name).

To modify HTTP headers in the response, refer to HTTP Response Header Modification Rules .

To create an HTTP Request Header Modification Rule, refer to the following pages: