Forum Discussion
Tony_Small_1352
Nimbostratus
Feb 13, 2017Need assitance creating an iRule to inclusively restrict access to a URL
We have an application that has multiple portals with client access controlled at the application layer. We would like to segment our population based on internet vs intranet. I'd like to restrict ac...
Snl
Cirrostratus
Feb 15, 2017use this a sample irule
1)Create Data group list as allowed-host and added the IP x.x.x.x/32
2) created below irule and called the data group list allowed-host
use string as equal or contain based on uri requirement
Code
when HTTP_REQUEST {
if { ( [string tolower [HTTP::uri]] ends_with "/web/svc.html" ) } {
if { not ( [class match [IP::client_addr] equals allowed-host] )
}
{
reject } } }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