Forum Discussion
Eric_Frankenfie
Nimbostratus
Jul 07, 2010Restricting Access to URI Based on IP Address
Is there a way for an iRule to restrict access to an URI based on IP address?
I would like UNRESTRICTED access to:
https://qa.ipcws.fiserv.com
I would like to RESTRICT access by IP address to:
https...
hoolio
Cirrostratus
Jul 07, 2010That's close. Here's something to try:
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] contains "/testapi.aspx" } {
if { !([matchclass [IP::client_addr] equals testapiAllowList])} {
discard
}
}
}
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
