Forum Discussion
Chris_D_15752
Nimbostratus
May 02, 2011Mobile redirect with forced SSL
Hi guys,
I am faced with dual puzzle for site demending dual function redirect causing some issses.
I need to provide detection process from www.main.com site provide mobile type v...
Chris_D_15752
Nimbostratus
May 05, 2011Thanks guys,
I found nice combo set of statements probably capable of taking care of all functionalities but get stuck on syntaxt so further testing is impossible. Can you guys see where I get it wrong. I really appreciate it.
when HTTP_REQUEST {
if {([string tolower [HTTP::host]] contains "nativeweb-site.com")} {
switch -glob [HTTP::header User-Agent] {
"*BlackBerry*"
"*Blackberry*"
"*Blazer*"
"*blazer*"
"*palm*" -
"*Palm*" -
"*SMARTPHONE*" -
"*Smartphone*" -
"*smartphone*" -
"*Danger*" -
"*hiptop*" -
"*MOT-*" -
"*RAZR*" -
"*AUDIOVOX*" -
"*Symbian*" -
"*symbian*" -
"*NOKIA*" -
"*Nokia*" -
"*Sony Ericsson*" -
"*Samsung*" -
"*LG 8*" -
"*Alcatel 735i*" -
"*Nextel*" -
"*Windows CE*" -
"*AUDIOVOX*" -
"*AU-MIC,*" -
"*Alcatel*" -
"*BENQ*" -
"*CASIO*" -
"*CDM-*" -
"*Ericsson*" -
"*EZOS*" -
"*kyok*" -
"*Kyocera*" -
"*LG-*" -
"*LGE-*" -
"*NEC-*" -
"*Nokia*" -
"*nok6*" -
"*NOKIA*" -
"*Mitsu*" -
"*MOT-*" -
"*mot-*" -
"*Motorola*" -
"*Sagem*" -
"*SAGEM*" -
"*Sendo*" -
"*SonyEricsson*" -
"*Panasonic*" -
"*PANTECH*" -
"*QC-*" -
"*PlayStation Portable*" -
"*PHILIPS*" -
"*Samsung*" -
"*SAMSUNG*" -
"*sama*" -
"*SEC-S*" -
"*SEC-s*" -
"*SEC-N*" -
"*Sanyo*" -
"*SHARP*" -
"*Sharp*" -
"*SIE-*" -
"*Sony*" -
"*SymbianOS*" -
"*Symbian OS*" -
"*portalmmm*" -
"*Vodafone/*" -
"*KDDI-*" -
"*J-PHONE*" -
"*Blazer*" -
"*AvantGo*" -
"*avantbrowser.com*" -
"*Danger*" -
"*hiptop*" -
"*ProxyNet*" -
"*IEMobile*" -
"*MobileExplorer*" -
"*.Web*" -
"*Palm*" -
"*Series60*" -
"*PalmSource*" -
"*PalmOS*" -
"*MIDP-2.0*" -
"*MIDP-1.0*" -
"*CLDC-1.0*" -
"*CLDC-1.1*" -
"*Series60*" -
"*Opera Mini*" -
"*MobilePhone*" -
"*NetFront*" -
"*Nitro*" -
"*DoCoMo*" -
"*Obigo*" -
"*PocketPC*" -
"*Pocket PC*" -
"*RegKing*" -
"*Smartphone*" -
"*SmartPhone*" -
"*EPOC*" -
"*Rover*" -
"*iPAQ*" -
"*Jornada*" -
"*iOpus*" -
"*iNASSAP*" -
"*Minimo*" -
"*Plucker*" -
"*ERICY*" -
"*SoftBank*" -
"*WILLCOM*" -
"*YOSPACE*" -
"*TagTag*" -
"*WinWAP*" -
"*UP.Link*" -
"*PDXGW*" -
"*ASTEL*" -
"*WAP1.*" -
"*Xiino*" -
"*UP/4*" -
"*Maemo*" -
"*Windows CE*" -
"*MSPIE*" -
"*Microsoft Pocket Internet Explorer*" -
"*Elaine*" -
"*EudoraWeb*"
"*ReqwirelessWeb*"
"*jBrowser-WAP*"
"*Lenovo*"
"*M3GATE*"
"*Cellphone*"
"*Sony CMD*"
"*wapsilon*"
"*TELME*"
"*Linux armv*"
"*SONY/COM1*"
"*embedix armv5tel*"
"*Xplore G*"
"*mobileOK DDC*"
"*Google WAP Proxy*"
"*Google CHTML Proxy*"
"*NetFront*"
{
HTTP::redirect "]"
return
}
}
if { [string tolower [HTTP::header Accept]] contains "vnd.wap.wml" } {
HTTP::redirect "]"
return
}
if { [TCP::local_port] != 443 }{
HTTP::redirect "]"
}
}
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