Alfonso_Santia2
Jan 17, 2021Altostratus
Block access to apps by browser. Allow only iPhone or Android accesss
Customer has an application that they want access only through the mobile device app.
They have recently found that the application can be accessed through any browser.
We have configured the following iRule but it is not working:
when HTTP_REQUEST {
if { ([HTTP::header User-Agent] contains "iphone") or ([HTTP::header User-Agent] contains "Android") } {
HTTP::redirect http://www.oursite.com}
if { ([HTTP::header User-Agent] contains "(IE|Mozilla|Safari|Chrome|Opera)") } {
drop
}
}
Any ideas how to achieve this?
Thanks