[發現新大陸] iOS手機版erep,看到電腦版方法

Day 1,800, 22:59 Published in China Republic of China (Taiwan) by Albert tseng

作者為Pallas Landan
http://www.erepublik.com/en/citizen/profile/5454742
要簽名請找他。

請使用手機看Erepublik但想看電腦版的捧由們照過來\0.0/
http://ppt.cc/xUTu

這篇文章讓我產生了一個想法:伺服器端判別裝置的依據是根據瀏覽器的User Agent
如果我們可以覆蓋(override)UA是否就可以騙過伺服器另其傳送普通版的網頁過來呢?

於是我針對目前最多人使用的兩大手機瀏覽器做了初步的搜尋,節錄如下:
Change the User Agent on an Android Phone (2010/5/25)

...Open your browser, enter about:debug into the address bar, then hit the "Go" button on your keyboard—don't tap the search/URL suggestion that comes up. You'll notice that the browser now does, well, nothing. But hit your Menu key, choose the "More" option, then select Settings. Scroll down some, and you'll see a new collection of advanced options there, including a "UAString" option. Click that, then choose between Android, desktop, or iPhone user strings to change what browser web sites think you're visiting with...

更改Android手機上的User Agent(2010/5/25)

打開你的瀏覽器,於網址列輸入about:debug,然後點鍵盤上的Go鍵送出--不要點任何出現的關鍵字/網址建議。但這時候你的手機還不會有任何動靜。現在點你的選單(Menu)鍵 選擇更多選項(More option)然後選擇設定(Settings)。往下拉,你會發現一組新的設定選項,其中包括UAString選項。點選該選項並選擇你要使用Android、桌上型電腦desktop、或iPhone user strings來改變伺服器認定你使用的裝置。

原文來自:
http://lifehacker.com/5547037/change-the-user-agent-on-an-android-phone

這篇是兩年前的文章,而底下的回覆還包括:
像是Skyfire或Dolphin Browser HD等其他瀏覽器的使用者也可以輕鬆的在Setting選項中改變你的User Agent...(Ender15 25 May 2010, 9:37 AM)

另一篇討論則是介紹了長期盤據手機瀏覽器龍頭的Opera,除了直接在Setting更改你的User Agent之外,如果想加入新的User Agent的方式:

In opera:config's search bar, type 'Custom'. Then you'll see a box: 'Custom User-Agent'. In box, type any OS name. For eg. Windows, iPhone/iOS/iPad, Android...(mvthakar 15 April 2012, 19:35:48)

在opera:config的搜尋框中輸入Custom。你會看到一個框框寫著Custom User-Agent。在這框框中輸入任何作業系的名稱,比方說Windows, iPhone/iOS/iPad, Android即可...(mvthakar 15 April 2012, 19:35:48)

http://my.opera.com/community/forums/topic.dml?id=1347822



如果想知道自己使用的其他瀏覽器,只要在Google搜尋瀏覽器名稱與User Agent這兩組關鍵字就能找到改變的方法。

以上🙂