Block 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/directoryinformation/something?something -> gets blocked
http://ourwebsite.com/directoryinformation/ -> Allowed
http://ourwebsite.com/anothersection/ -> Allowed
As far as where to start - would I need to get into string matching, or some type of character matching? I know how to match the string and redirect if needed, however I don't know how I would block further requests if more data is appended to the end of the uri.
For instance - it is my understanding that matchclass is no longer being used in v10 - we are running v10.2.3. So I could create a data group and check to see if these strings match?
Essentially, we would need to accept a URL with the following directories, and pass them through unchanged:
class
match [
HTTP::uri
]
ends_with
directoryinformation
class
match [
HTTP::uri
]
ends_with
class
match [
HTTP::uri
]
ends_with
I appreciate any guidance.