Forum Discussion
Bob_Z_148422
Nimbostratus
Apr 13, 2014disconnect/teminate session if selected URI
Hi,
Is it possible in an iRule to disconnect or terminate a session if the URI matches some value?
I have a specific list of uris that I present/allow through my F5 and if I see something t...
Apr 13, 2014
I have not checked the syntax because I have no BigIP nearby right now but this should work.
allowed_uris is a string data group list containing all uris you want to allow
when HTTP_REQUEST {
if { not [class match [string tolower [HTTP::uri]] equals allowed_uris] }
reject
You can also use drop
}
}
/Patrik
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