Forum Discussion
mtobkes_64700
Nimbostratus
Mar 11, 2010Can iRule Reject Requests Based on 'True-Client-IP'
Can someone please tell me if the LTM v9.4.7 can take action on requests, based on the HTTP header value for 'True-Client-IP'?
We will be 'Akamaizing' parts of our website and will no l...
mtobkes_64700
Nimbostratus
Mar 11, 2010Thanks!
I'd would like to remove the split/loop in my iRule and send a 301 if the 'True-Client-IP' matches my data list 'banned_addr_list'.
Can you tell me if the syntax is correct and/or if I'm missing anything?
when HTTP_REQUEST {
if { [HTTP::header "True-Client-IP"] ne ""} {
if { [matchclass $::banned_addr_list equals $addr] } {
HTTP::respond 403
}
}
}
Thanks
-MT
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
