Forum Discussion
kaguras_48797
Apr 18, 2011Nimbostratus
iRule 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...
hooleylist
Apr 19, 2011Cirrostratus
Add 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
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