-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Open
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation edits
Description
Existing documentation URL(s)
What changes are you suggesting?
Potentially remove or clarify the following:
You cannot modify the value of any header commonly used to identify the website visitor's IP address or initial protocol, such as x-forwarded-for, true-client-ip, x-real-ip, or x-forwarded-proto. Additionally, you cannot remove the x-forwarded-for and x-forwarded-proto headers.
However it is completely possible to create a Request Header Transform rule to remove the x-forwarded-for header at the cloudflare edge.
I can also confirm that the rule works as this request:
curl https://whoami.mydomain.com --resolve whoami.mydomain.com:443:172.67.150.59 -H "X-Forwarded-For: 1.2.3.4
Shows the x-forwarded-for header with the supplied value removed and the first ip as my ip.
Additional information
No response
Metadata
Metadata
Assignees
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation edits