Jump to content
Welcome to our new Citrix community!

Block file extensions on a particular URL


Recommended Posts

Assuming you have a specific page/directory you want to exempt without having to identify every extension:

https://demo.company.com/dir/subdir/pagename.<everything>

Regardless of query parameters:

 

Without regex if the path is a specific page. You can just block anything with that page name or directory (to make the match narrow):

responder policy:

DROP action

Expression:  http.req.url.path.startswith("/subdir/dir/pagename.")  #or contains or other operators; but used startswith to narrow matches...

Bind policy to the lb vserver in question (or cs or vpn vserver)

 

If you want to block specific combinations like "post" methods vs. gets you can make variations.

Or we can use the regex epxresions.  Just starting small. Though you can also drop all content to the website...but that may be more than you need.

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...