Forum Discussion
Neil_66348
Oct 04, 2013Nimbostratus
iRule Geo Targeting
Hi Guys ,
Trying to the below to work , TCL is not my strong point...
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] starts_with "/geo") } {
Parse the client IP from X-Forward...
Kevin_Stewart
Oct 22, 2013Employee
You could do this:
set xff [lindex [split [string map [list " " ""] [HTTP::header "X-Forwarded-For"]] ","] 0]
Ref: https://devcentral.f5.com/questions/using-x-forwarded-for-to-block-clients
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