Forum Discussion
Add GeoIP information to header
My team has been tasked with creating an iRule to just add the Geolocation to the header so that the application teams can store that in a database for future reports. None of us are well versed with iRules and are not sure how to even begin this process. Everything I'm finding on devcentral appears to be redirecting traffic based on GeoIP information. We do not want to affect any traffic, just want to add the information based on the URL they are accessing. Any assistance in getting started would be greatly appreciated. Thank you
- JRahmAdmin
That would be a violation of the geolocation data EULA unless you have purchased a specific license allowing you to do so, but the technical part is easy:
when HTTP_REQUEST { HTTP::header insert Geolocation [whereis [IP::client_addr]] }
- shaggyNimbostratus
For more info (legal and technical) - https://devcentral.f5.com/wiki/iRules.whereis.ashx
Lori MacVittie has a nice write-up on the licensing portion of F5 geolocation: https://devcentral.f5.com/Portals/0/Cache/Pdfs/2807/f5-friday-i-am-in-ur-http-headers-sharing-geolocation-data.pdf
Recent Discussions
Related Content
* 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