Forum Discussion
Franki21_136711
Nimbostratus
Oct 30, 2013Simple iRule to look for /rest in HTTP header
HI, completely new to F5 and irules and looking for a snippet that pass only HTTP requests for URLs beginning with "/rest" in header. Worked with Junos in the past, looks / feels familar but trying to find my way around F5s
Thanks in advance
1 Reply
- Kevin_Stewart
Employee
Assuming you mean URI in this case and not specifically an HTTP header. If so,
when HTTP_REQUEST { if { not ( [string tolower [HTTP::uri]] starts_with "/rest" ) } { reject } }
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