짜증나서 찾아냈다. User-Agent 정보 속이기... -_-

크리에이티브 커먼즈 라이선스
Creative Commons License
베스트 애니메를 갈때마다 항상 IE 가 아니면 아예 사이트 자체를 접속도 못하도록 막아놓은 이 놈의 설정 때문에 짜증나서서핑으로 찾아냈다. -_- (만들까도 생각했지만... 별로 프로그래밍 좋아하지 않는 내가 그럴리가 없지;;; ㅡㅡ;;)

리눅스에서 Konqueror 를 쓰면서 브라우저 정보를 속일때는 잘만 동작했는데... 다른 곳에서는 마땅한 방법이 보이질 않아서 한동안 포기했는데... 오늘은 갑자기 짜증이 밀려오더니... 몇번의 구글링을 통해서 발견한 것이다.

Changing your User-Agent Value

Here are specific instructions on masquerading your browser by modifying the User-Agent value it sends:

Opera
Bydefault, Opera identifies itself as a version of MicrosoftInternetExplorer. Opera 6 pretends it's IE 5.0, Opera 7 pretends it'sIE 5.5 andIE 6.0. To change the settings in Opera 7, go to the Networkpanel ofthe Preferences dialog and adjust the value selected in theBrowserIdentification drop-down list. Note that the values in thislist arecurrently fixed, with no way to add additional user agentstrings. Fulldetails on the list values can be found in Opera'sknowledge base at www.opera.com/support/search/supsearch.dml?index=570.

Internet Explorer
Mostsites support Internet Explorer, so there's usuallylittle reason tochange its user agent value. If you are experiencedwith the Windowsregistry, however, you can easily add new values tothe user agentvalue's comment section by using the registry editor(regedit.exe) toadd new subkeys to the key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\User Agent\Post Platform

After restarting the browser, the names of these subkeys are automatically inserted into the brower's user agent string.

Mozilla 1.x/Netscape 7.x
The user agent value can be specified in the defaults\pref\all.js file by adding the "general.useragent.override" property, as in this example:

pref( "general.useragent.override", "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)" );


Firefox
Firefoxusers (an alternative browser from the MozillaFoundation) can installplug-ins for managing the user agent value,such as the User AgentSwitcher at http://chrispederick.myacen.com/work/firefox/useragentswitcher/or the UserAgent bar at http://uabar.mozdev.org.Alternately,type the special URL "about:config" in the browser'slocation bar toaccess the browser's properties and use the popup menuto add a newproperty called "general.useragent.override" with thedesired value.
출처 : http://www.ericgiguere.com/articles/masquerading-your-browser.html

내경우에는 파폭을 주로 이용하기 때문에 https://addons.mozilla.org/firefox/59/ 를 구해서 설치!!!그동안 짜증났던 브라우징 스트레스를 줄여주는데 일조했다. -_-;; IE를 반드시 써야했던 몇몇의 사이트중 하나가 사라졌다는점에서 말이다. ㅎㅎ

HTTP User-Agent 헤더를 속여서 정상적으로 bestanime.co.kr 를 접속한 화면


ps. 단지 문제점이라면 User-Agent 에 따라서 다른 jscript 를 제공하는 사이트일 경우 브라우저 측의 스크립트 엔진이 정상적으로 동작하지 않을 수 있다는 점이랄까 -_-;;


Trackback 0 Comment 0