cancel
Showing results for 
Search instead for 
Did you mean: 
watarimono
Level 9

Filter based on operating system

Is it possible to filter based on the OS running? If so what is the best way to do this?

What we are trying to do is block some mobile devices that run Windows CE from accessing the internet.

We can't block by IP, username or group as we only want to block the Windows CE devices.

Thank you,

0 Kudos
3 Replies
eelsasser
Level 15

Re: Filter based on operating system

The only indication a web site has of which OS the client is using is the User-Agent header.

You can write rules that use the property:

Header.Request.Get("User-Agent")

and match on value you don't want and block.

So a rule like this will block my Android.

Header.Request.Get("User-Agent") matches "*Android*"

0 Kudos
watarimono
Level 9

Re: Filter based on operating system

Thank you so much,

I was under the impression the user-agent was specific to the browser.  I've already created the rule and am just waiting to test.

Thanks again for your prompt help!

0 Kudos
eelsasser
Level 15

Re: Filter based on operating system

It is specific to the browser on the device, but they usuall put in some indication that it's mobile.

This will probably pick up 80% of them if you matches in list:

*Mobi*

*Android*

*Phone*

*iPad*

*BlackBerry*
*Windows CE*

based on data I see here:

http://www.zytrax.com/tech/web/mobile_ids.html

0 Kudos