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

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

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