Page rule to block a URI string containing a specific chatacter

I would like to block any URI that contains a colon (or any other undesirable character) anywhere after the http://. For example

mysite.com/path/to/something:

Or

mysite.com/path:/to/something

Its not clear to me from the instructions how to do that, or indeed whether its possible. I am on the Pro plan.

Thank you.

That’s pretty easy. Use a firewall rule containg this:

URI Path    contains    ":"

or the expression

(http.request.uri.path contains ":")
2 Likes

Thank you @TomKlein… I only now realize that anything that comes after the domain name is fair game. :slight_smile:

I suppose I can use the same concept for any word that comes after the domain name as well? Many thanks for your kind assistance.

Yes, you can do the same with any word you like. For more complicated things, there’s also Regex, but that’s a different topic.

2 Likes

Thanks again, greatly appreciated.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.