javascript - How facebook and google can detect my device -


i wonder how facebook , google redial different links different devices , redial there lite veesion android or ios opera mini too. research little bit , got idea detection user agent java script can't find real answer or code can use website.

so know how done , me code , think php code best if possible cause user disable there javascript.

using php:

var_dump( $_server['http_user_agent'] ); 

more at: php.net

using javascript:

alert( navigator.useragent ); 

more at: w3school.com


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -