Forum Discussion
Joe_Pipitone
Nimbostratus
Jan 28, 2013Block appended portions of URI
We have a site in particular where we'd like to only allow a certain few strings to display our webpages, and anything after those strings gets blocked.
For example:
http://ourwebsite.com/directo...
The_Bhattman
Nimbostratus
Jan 28, 2013Hi Joe,
THere are several ways you can approach this. The following is a simple example of the structure of using an irule to block specific paths in the URI
class blocked_uri {
"something"
"somethingelse"
}
when HTTP_REQUEST {
if { { [class match [string tolower [HTTP::path]] ends_with blocked_uri ] } {
reject
}
}
[HTTP::path] can be replaced with other commands
I hope this helps
=Bhattman=
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