Jump to content
Welcome to our new Citrix community!

Need help with an Policy

Recommended Posts



i am not an netscaler specialist, but the only one, who has to configure this "thing"


What i need:


I have an virtual server - and i have 3 URLs / DNS - only these 3 URLs are allowed to access the virtual server.

i try to create a responder policy with Action Drop.


Expression should be something like this:








First - i dont know the "or" - i saw other with && (and) but it is not and. it should be "or".

So - if the Url is url4 - drop, cause it is not one of the 3.


I hope you understand.


Link to comment
Share on other sites

(Also, I'm judging paths only and not host portions of the URL)

Remember eq is full path/query string match and contains is partial match.  Both are case-sensitive unless made otherwise as demonstrated below.

If you need changes to the recommended expression give some sample urls/more details on the allowed/disallowed scenario and we can help you revise.


I'm assuming you are saying which URLS users can hit (not which urls can access server). if you need ip filters as well, let us know.  I'm assuming this will be a partial path match, if you need more exact, we can adjust the expression to eq("<path/query>"), contains("<path/query>"), or starts_with("<path/query>")...


To drop ALL but these three URLs: (policy is TRUE if not one of the allowed)

!(http.req.url.path.contains.set_text_mode(ignorecase).("/url1") || http.req.url.path.contains.set_text_mode(ignorecase).("/url2") || 



Would be equivalent to:

!http.req.url.path.contains.set_text_mode(ignorecase).("/url1") && !http.req.url.path.contains.set_text_mode(ignorecase).("/url2") && 



And could also be listed like:

http.req.url.path.contains.set_text_mode(ignorecase).("/url1").not && http.req.url.path.contains.set_text_mode(ignorecase).("/url2").not && 



Syntax Reference:

&& - and

|| - or

! - not  or append .not to a boolean operator







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...