Forum Discussion
ravi_atc
Nimbostratus
Feb 18, 2022Need help in creating iRule to deny a specific URL and allow all others.
Hi All, I am new to F5 devices, no experience in creating iRules at all. The application is hosted (www.example.com) and the traffic is being load balanced using Virtual Servers. I have a requirem...
Mayur_Sutare
MVP
Feb 18, 2022Hi ravi_atc , you can try below irule syntax.
When HTTP_REQUEST { if { ([HTTP::host] eq "www.example.com") and (([string tolower [HTTP::uri]] eq "/admin")) } { reject } }
You can also achieve it using LTM policy.
Hope it helps!
- ravi_atcFeb 18, 2022
Nimbostratus
Hi Mayur,
Thank you for the help, since we are in a production environment, i will recommend the given code to the team, will let you know once it gets implemented.
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