Forum Discussion
Dave_22402
Nimbostratus
Mar 16, 2010irule based on ip and url
I am trying to construct an Irule that first checks for a url and then allows access based on IP.
Example -
if the url is "/foo/*" and IP = 123.123.123.123
then g...
hoolio
Cirrostratus
Mar 18, 2010Sorry Citizen, I was being a dolt thinking that you were checking for a blacklisted URI with something like this:
if {$black_listed_uri && !($allowed_ip)}{
reject
} else {
allow
}
So you and iRuleYou are entirely correct. The only potential issue is if an allowed IP is able to obfuscate the URI they'd be able to bypass the iRule security and make a request to a non-white-listed URI.
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