Forum Discussion
Jared_01_140721
Nimbostratus
Jan 03, 2014Hide what browser is being used
I have an web application that doesn't support safari by choice. (They want you to buy the application). Is there a way to hide the fact that Safari is being used, or tell the application that IE is being used instead?
2 Replies
- hoolio
Cirrostratus
You could rewrite the user-agent header:
user-agent from: http://www.useragentstring.com/pages/Safari/ when HTTP_REQUEST { switch -glob [string tolower [HTTP::header User-Agent]] { "*safari*" { HTTP::header replace "User-Agent" "my custom user-agent string" } } }Aaron
- John_Alam_45640Historic F5 Account
Do you want to apply it to one URI? like this?
user-agent from: http://www.useragentstring.com/pages/Safari/ when HTTP_REQUEST { if { [HTTP::uri] equals "/x/y/z" } { switch -glob [string tolower [HTTP::header User-Agent]] { "*safari*" { HTTP::header replace "User-Agent" "my custom user-agent string" } } } }
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