iPad browser detect (User-Agent)

Number of Views : 14595

For many years developers have been using the User-Agent element of the browser to detect what web browser a person is using. This is very useful for designers when they are looking to make a very functional site in older browsers or add new technology (IE 6 )

In my last post I looked at the portscan of an iPad. Today I decided to look at he header information.

I opened up wireshark (packet sniffer) and watched the iPad traffic.

If you look at this information it has some interesting bits. It does identify the actual device ‘iPad’ in the user-agent string. A developer could read the string and look for the iPad or even iPhone user-agent to target these devices.

Here is copy and past from yoyo.org to read header info from the web for my iPad.

Host:   pgl.yoyo.org
User-Agent: Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B367 Safari/531.21.10
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Referer:    http://www.google.com/search?q=view+browser+headers&ie=UTF-8&oe=UTF-8&hl=en&client=safari
Accept-Language:    en-us
Accept-Encoding:    gzip, deflate
Connection: keep-alive

I think it is interesting that in the string it also has OS 3_2 like Mac OS X.

Here is the header information for my iPhone.

Host:   pgl.yoyo.org
User-Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_2 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7D11 Safari/528.16
Referer:    http://www.google.com/m/search?oe=UTF-8&client=safari&hl=en&aq=0&oq=view%2520browser%2520head&aqi=g1-k18d1t0&fkt=3393&fsdt=14019&q=view+browser+headers
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language:    en-us
Accept-Encoding:    gzip, deflate
Connection: keep-alive

Leave a Reply

Your email address will not be published. Required fields are marked *