26-Jul-2021 11:29
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 browser is not compatible with Application access.
Regards,
Sajid
26-Jul-2021 12:45
Trying to achieve below
URL:
https://abc.mydomain.com/cas/login?service=https://sso.mydomain.com:443/ssomger/c/INB
User-Agent: Trident (IE 11.0) only
when HTTP_REQUEST {
if { ([class match [HTTP::header "User-Agent"] contains supported_browser]) && ([HTTP::uri] contains "/INB" ) } {
else {
HTTP::respond 200 content "Web Browser not compatible "
With Best Regards,
Sajid
27-Jul-2021
03:06
- last edited on
24-Mar-2022
01:12
by
li-migration
What's the issue? I see you are using datagroup where you will set allowed browser list. Is your irule not working as expected? Is it possible for you to share your complete irule?
27-Jul-2021 07:48
when HTTP_REQUEST {
if { ([class match [HTTP::header "User-Agent"] contains supported_browser]) && ([HTTP::uri] contains "/INB" ) } {
return
}
else {
HTTP::respond 200 content "Browser not supported, kindly use IE 11.0 only" }
}
only else statement working with IE and firefox.
31-Jul-2021 01:18
This irule validation is required, its only work with IE.
my requirement are
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