Like I wrote the previous blog to hide passcode field in Receiver similarly you can do for Browser as well by having this rewrite policy
add rewrite action
Rewrite_PW_count insert_http_header Set-Cookie
"\"pwcount=\"+1"
add rewrite policy
Rewrite-pwcount
"HTTP.REQ.HOSTNAME.CONTAINS(\"NSG.fqdn.com\")&&HTTP.REQ.URL.CONTAINS(\"index.html\")"
Rewrite_PW_count
bind vpn vserver NSGAteway -policy Rewrite-pwcount -priority 100 -gotoPriorityExpression
END -type RESPONSE
Please note that if you want to hide both the browser and reciever at the same time then the above policy will cause issue in receiver. So if you are going to hide second passcode in both the browser and reciever then in the above expression add this as well i.e
if http request contains user-agent "firefox" ( for mozilla) or chrome or IE then only hit the policy or a simple expression would be if http request does not contain reciever.
So overall we will make sure that this policy doesn't get hit via receiver.
No comments:
Post a Comment