Forum Discussion
F5_LB_Eng
Cirrostratus
Oct 18, 2011redirect 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
5 Replies
- Brian_69413
Nimbostratus
Something like this should work:when HTTP_REQUEST { if { ([HTTP::uri] starts_with "/console") or ([HTTP::uri] starts_with "/em")}{ HTTP::respond 403 } } - Brian_69413
Nimbostratus
And reference this page for more info:
http://devcentral.f5.com/wiki/iRules.HTTP__respond.ashx - F5_LB_Eng
Cirrostratus
Thanks Brain... - F5_LB_Eng
Cirrostratus
Brain,
we can use contains instead of starts_with...
Regards
Prasanna - nitass
Employee
we can use contains instead of starts_with... yes, you can.
anyway, if url is prodabc.in.svcs.ad.com/console, HTTP::host is uri is prodabc.in.svcs.ad.com and HTTP::uri is /console.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
