Forum Discussion
Ethereal_96320
Nimbostratus
Oct 15, 2012distinguish between Citrix client and any browser
Hello folks
Supposing that I am not an iRules guru, I will ask for help here.
Basically the goal of my mission would be blocking the access to the Citrix portal from the browser (usi...
Michael_Yates
Nimbostratus
Oct 15, 2012Hi Ethereal,
You should be able to trigger an event based on the User-Agent contained within the HTTP::header, but I would suggest creating an iRule that would just monitor the incoming User-Agents at first (so that you can catch all of the User-Agents that you do not want to block and use the results to make an exclusion list).
Example: CitrixReciever
You could start with something like this:
when HTTP_REQUEST {
switch -glob [HTTP::header User-Agent] {
"*MSIE 7.0*" -
"*MSIE 6.0*" -
"*MSIE 5.*" -
"*MSIE 4.*" -
"*Safari*" -
"*Firefox*" -
"*MSRPC*" {
log local0. "Known Browsers to eventuall block."
}
"*CitrixReciever*" {
log local0. "Known Citrix Client"
}
default {
log local0. "Unkown User-Agent: [HTTP::header User-Agent]"
}
}
}
After you have logged enough you can change the logging behavior to redirect, blocking, reject, drop or whatever action you like.
I would also suggest these as additional reading. They discuss using the User-Agent as well:
Split out clients using the Citrix Receiver w/ iRule
Redirect based on user browser (mobile)
Hope this helps.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
