Forum Discussion
Ashu_Aggarwal
Cirrus
Apr 02, 2020i-rule to allow specific urls only
I have to configure a VS to allow only two urls & block everything else. for example https://mycompany.com/abc/* & https://mycompany.com/xyz/* should be allowed & everything else should be blocked. C...
Samir
MVP
Apr 03, 2020@Janet, Your Irule is correct but small modification needed to fulfill actual request.
when HTTP_REQUEST {
if { !(([string tolower [HTTP::uri]] starts_with "/abc") or ([string tolower [HTTP::uri]] starts_with "/pqr")) } {
drop
}
}- Ashu_AggarwalApr 03, 2020
Cirrus
This i-rule blocked whole site
- SamirApr 04, 2020
MVP
, Thank you so much for feedback. We write the iRule based on your question/assumption. As i believe, you are passing wildcard parameter in "/abe/*" . which may not return proper result. It's is a devcentral tips and modify according to business needs.
Try switch condition or F5 Policy..
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
