http://johnbokma.com/mexit/2004/04/24/changinguseragent.html
1.網址列輸入 about:config
2.下方內容按右鍵、新增、字串
輸入 general.useragent.override
值 [ User_AgentName ]
(輸入 about:config 會跳出這個有趣的警告)
例如:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Foxy/1; InfoPath.1)
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
Robot
Mozilla/5.0 (compatible; Yahoo! Slurp/3.0; http://help.yahoo.com/help/us/ysearch/slurp)
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
Mediapartners-Google <--Google AdSense機器人,做內容比對 播放廣告用
Googlebot-Image/1.0 <--Google抓圖機器人
msnbot/1.1 (+http://search.msn.com/msnbot.htm)
msnbot/2.0b (+http://search.msn.com/msnbot.htm)
Baiduspider+(+http://www.baidu.com/search/spider.htm)
Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmasters.htm#07)
Mozilla/5.0 (Twiceler-0.9 http://www.cuil.com/twiceler/robot.html)
這是 iPhone
Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; zh-tw) AppleWebKit/52
8.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16
這是 iTouch (iPod)
Mozila/5.0 (iPod; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Geckto) Version/3.0 Mobile/3A101a Safari/419.3
這是 iPad (2010-06-25 補)
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/7B334b Safari/531.21.10
這是 chrome (Google 瀏覽器)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.28 Safari/530.5
這個是??
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko)
Version/3.0 Mobile/1A543a Safari/419.3 (compatible; Googlebot-Mobile/2.1; +http://www.google.com/bot.html)
補充:
原來 還是有 addon 工具可用:
User Agent Switcher 0.7
可以更方便修改 User Agent 名稱
The User Agent Switcher extension adds a menu and a toolbar button to switch the user agent of the browser.
安裝︰https://addons.mozilla.org/zh-TW/firefox/addon/59
更改 Internet Explorer (IE) User agent
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInternet SettingsUser agent 這底下有兩個 Key(機碼):Pre Platform、Post Platform (若沒有,可自己新增)
範例
在 Post Platform 底下新增一個字串名稱: ABC
在 Pre Platform 底下新增一個字串名稱: XYZ
若原本的 IE User agent 名稱:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
則新的 IE User agent 名稱會變為:
Mozilla/4.0 (compatible; MSIE 6.0; XYZ; Windows NT 5.1; ABC)
Understanding User-Agent Strings
微軟的說明資料
http://msdn.microsoft.com/en-us/library/ms537503%28v=vs.85%29.aspx
2011-02-14
奇怪的 user-agent 資料︰
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; SV1) )