Forum Discussion
Marc_13733
Nimbostratus
Nov 04, 2013Country code as X- Header
We've noticed that the F5 seems to know the country of visitors (presumably based on some IP lookup). Is there any way to get the F5 to pass the country code (e.g. "US" for U.S.A. or "DE" for Germany...
Kevin_Stewart
Employee
Nov 04, 2013The HTTP::header insert method will do that for you, and the name of the header is arbitrary. Example:
when HTTP_REQUEST {
HTTP::header insert "X-Country" [whereis [IP::client_addr] country]
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects