Forum Discussion
Sajid
Jul 26, 2021Cirrostratus
URL and User-Agent base allow
Trying to implement irule for a virtual server to check User-Agent = Internet Explorer only (application compatible issue) and URL if the condition is true allows URL else message your brows...
Sajid
Jul 31, 2021Cirrostratus
This irule validation is required, its only work with IE.
my requirement are
- User-Agent (IE)
- URL Query end with link (urllist)
- If User use IE application URL should work
- Else Message Browser not support
- All other URLs should work with IE, Firefox, Chrome etc.
when HTTP_REQUEST {
if { !([class match [HTTP::header "User-Agent"] contains "supported_browser"] || {class match [HTTP::query] ends_with "urllist"})} {
HTTP::respond 200 content "Browser not supported for custom application, kindly contact Support Team"
}
}
Regards,
Sajid
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