Forum Discussion
F5_LB_Eng
Oct 18, 2011Cirrostratus
redirect to 403 - Access Forbidden irule
Hi All,
i need urgent help on creating one irule .
the requirement is below
if the request is coming with the url prodabc.in.svcs.ad.com/console or /em
we need to redirect to 403 - Access Forbidden
i am not good irule ,could any please help on this request.
Thanks
- Brian_69413NimbostratusSomething like this should work:
when HTTP_REQUEST { if { ([HTTP::uri] starts_with "/console") or ([HTTP::uri] starts_with "/em")}{ HTTP::respond 403 } }
- Brian_69413NimbostratusAnd reference this page for more info:
- F5_LB_EngCirrostratusThanks Brain...
- F5_LB_EngCirrostratusBrain,
- nitassEmployeewe can use contains instead of starts_with... yes, you can.
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