{"id":180,"date":"2008-02-14T20:23:00","date_gmt":"2008-02-14T19:23:00","guid":{"rendered":"http:\/\/marcoratto.co.uk\/blog\/2007\/10\/08\/useragent-and-masquerading-browser-version\/"},"modified":"2008-02-14T20:23:00","modified_gmt":"2008-02-14T19:23:00","slug":"useragent-and-masquerading-browser-version","status":"publish","type":"post","link":"https:\/\/marcoratto.it\/blog\/browser\/useragent-and-masquerading-browser-version\/","title":{"rendered":"Useragent and Masquerading Browser Version"},"content":{"rendered":"<p>Vi siete mai chiesti come f\u00e0 un sito internet a capire quale tipo di browser state utilizzando ?<\/p>\n<p>Semplice:<\/p>\n<p>Il browser invia nell&#8217;Header della Request una variabile &#8220;UserAgent&#8221; in cui \u00e8 difinito il S.O. che state utilizzando, il browser e le relative versioni.<\/p>\n<p>Se volete leggerla potete scrivere sull&#8217;url del vostro browser la seguente riga:<\/p>\n<p><a href=\"javascript:alert(navigator.userAgent);\" title=\"javascript:alert(navigator.userAgent);\" target=\"_blank\"><em>javascript:alert(navigator.userAgent);<\/em><\/a><\/p>\n<p><strong>Internet Explorer 7:<\/strong><br \/>\nPotete leggere  <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/ms537503.aspx\" title=\"Understanding User-Agent Strings\" target=\"_blank\">Understanding User-Agent Strings<\/a> sul sito MSDN di Microsoft.<\/p>\n<p><strong>Firefox<\/strong><\/p>\n<p>Potete leggere la variabile <em>general.useragent.override<\/em> scrivendo come url <a href=\"about:config\" title=\"about config\" target=\"_blank\">about:config<\/a><\/p>\n<p>Un addon molto comodo \u00e8 <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/59\" title=\"User Agent Switcher\" target=\"_blank\">User Agent Switcher<\/a> che permette di cambiare in ualsiasi momento l&#8217;impostazione del proprio browser.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vi siete mai chiesti come f\u00e0 un sito internet a capire quale tipo di browser state utilizzando ? Semplice: Il browser invia nell&#8217;Header della Request una variabile &#8220;UserAgent&#8221; in cui \u00e8 difinito il S.O. che state utilizzando, il browser e le relative versioni. Se volete leggerla potete scrivere sull&#8217;url del vostro browser la seguente riga: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,17,21,27,28,29],"tags":[],"class_list":["post-180","post","type-post","status-publish","format-standard","hentry","category-browser","category-firefox","category-general","category-internet-explorer","category-internet-explorer-6","category-internet-explorer-7"],"_links":{"self":[{"href":"https:\/\/marcoratto.it\/blog\/wp-json\/wp\/v2\/posts\/180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marcoratto.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/marcoratto.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/marcoratto.it\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/marcoratto.it\/blog\/wp-json\/wp\/v2\/comments?post=180"}],"version-history":[{"count":0,"href":"https:\/\/marcoratto.it\/blog\/wp-json\/wp\/v2\/posts\/180\/revisions"}],"wp:attachment":[{"href":"https:\/\/marcoratto.it\/blog\/wp-json\/wp\/v2\/media?parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/marcoratto.it\/blog\/wp-json\/wp\/v2\/categories?post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/marcoratto.it\/blog\/wp-json\/wp\/v2\/tags?post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}