Forum Discussion
kaguras_48797
Nimbostratus
Apr 18, 2011iRule and Operators Help
Hi all,
I'a new user and I would like to know is it possible to write an iRule that contorls IP address and cookie which will reject or send a reset package if IP address is not an IP Addres...
hoolio
Cirrostratus
Apr 19, 2011Add an "r" to IP::client_add so it's:
when HTTP_REQUEST {
if { [string tolower [HTTP::header "HeaderName"]] contains "some_string_in_header" and ![IP::addr [IP::client_addr] equals A.B.C.D]}{
discard
}
}
Also make sure that the string in your iRule is in lower case as you're setting the HTTP header to lower case.
Aaron
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
