Forum Discussion
Avi_009_232268
Nimbostratus
May 01, 2019URI BLOCK
i have the url abc.com and xyz.com on same VIP.
I want to allow abc.com/abc but same URL /abc should blaock for all the URL in same VIP.
Lee_Sutcliffe
Nacreous
May 01, 2019Try this iRule
when HTTP_REQUEST {
if {!([HTTP::host] equals "abc.com") && ([HTTP::uri] equals "/abc")} {
reject
}
}
or this one to be more specific
when HTTP_REQUEST {
if {([HTTP::host] equals "xyz.com") && ([HTTP::uri] equals "/abc")} {
reject
}
}
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
