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.
- Avi_009_232268
Nimbostratus
I want to allow abc.com/abc and block URI /abc for othr URL which is on same VIP Its urgent.
- Lee_Sutcliffe
Nacreous
Try 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 } }
- Avi_009_232268
Nimbostratus
when HTTP_REQUEST { if {([HTTP::host] equals "abc.com") and ([HTTP::uri] equals "/abc")}{ return } if{([HTTP::uri] "abc")} reject }
- Avi_009_232268
Nimbostratus
its urgent can someone help
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