브라우저별 접속현황 업데이트 > 그누4 팁자료실

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.

브라우저별 접속현황 업데이트 정보

브라우저별 접속현황 업데이트

본문

/lib/visit.lib.php 에서 get_brow 부분을 교체

================================================================================================
function get_brow($agent)
{
    $agent = strtolower($agent);

    //echo $agent; echo "<br/>";

    if (preg_match("/msie 5.0[0-9]*/", $agent))        { $s = "MSIE 5.0"; }
    else if(preg_match("/inapp/", $agent))              { $s = "NAVER Apps"; } //네이버어플
    else if(preg_match("/navercafe/", $agent))          { $s = "NAVER CAFE Apps"; } //네이버 카페어플
    else if(preg_match("/daumapps/", $agent))          { $s = "DAUM Apps"; } //다음어플
    else if(preg_match("/natebrowser/", $agent))        { $s = "NATE Apps"; } //네이트어플
    else if(preg_match("/9b176/", $agent))              { $s = "Google Apps"; } //구글어플
//브라우저 어플 끝
    else if(preg_match("/maxthon/", $agent))            { $s = "Maxthon"; } //Maxthon
    else if(preg_match("/apple-pubsub/", $agent))      { $s = "Apple-PubSub"; } //Safari Feed Reader
    else if(preg_match("/mqqbrowser/", $agent))        { $s = "MQQBrowser"; } //MQQBrowser
    else if(preg_match("/diigobrowser/", $agent))      { $s = "DiigoBrowser"; } //DiigoBrowser
    else if(preg_match("/avant browser/", $agent))      { $s = "Avant Browser"; } //Avant Browser
    else if(preg_match("/embedded/", $agent))          { $s = "Embedded Web Browser"; } //Embedded Web Browser
    else if(preg_match("/browserng/", $agent))          { $s = "BrowserNG"; } //BrowserNG
    else if(preg_match("/smarthub|smart-tv|smarttv/", $agent))        { $s = "Smart TV"; } //Smart TV
    else if(preg_match("/flipboardproxy/", $agent))    { $s = "FlipboardProxy"; } //FlipboardProxy
    else if(preg_match("/wosbrowser/", $agent))        { $s = "wOSBrowser"; } //wOSBrowser
//기타 브라우저 끝
    else if(preg_match("/google/", $agent))            { $s = "Google Robot"; } //구글로봇
    else if(preg_match("/mediapartners/", $agent))      { $s = "Google AdSense"; } //구글애드센스
    else if(preg_match("/-mobile/", $agent))            { $s = "Google-Mobile Robot"; } //구글모바일로봇
    else if(preg_match("/naver blog/", $agent))        { $s = "NAVER Blog Rssbot"; } //네이버블로그로봇
    else if(preg_match("/naver|yeti/", $agent))        { $s = "NAVER Robot"; } //네이버로봇
    else if(preg_match("/daum/", $agent))              { $s = "DAUM Robot"; } //다음로봇
    else if(preg_match("/yahoo/", $agent))              { $s = "Yahoo! Robot"; } //야후!로봇
    else if(preg_match("/empas|nate/", $agent))        { $s = "NATE Robot"; } //네이트로봇
    else if(preg_match("/bing/", $agent))              { $s = "Bing Robot"; } //Bing로봇
    else if(preg_match("/msn/", $agent))                { $s = "MSN Robot"; } //MSN로봇
    else if(preg_match("/zum/", $agent))                { $s = "Zum Robot"; } //Zum로봇
    else if(preg_match("/qrobot/", $agent))            { $s = "Qrobot"; } //Qrobot로봇
    else if(preg_match("/archive|ia_archiver/", $agent)){ $s = "Archive Robot"; } //아카이브로봇
    else if(preg_match("/twitter/", $agent))            { $s = "Twitter Robot"; } //Twitter로봇
    else if(preg_match("/facebook/", $agent))          { $s = "Facebook Robot"; } //Facebook로봇
    else if(preg_match("/whois/", $agent))              { $s = "Whois Search Robot"; } //Whois Search로봇
    else if(preg_match("/checkprivacy/", $agent))      { $s = "KISA"; } //한국인터넷진흥원
    //robots.txt로 차단 안되는 로봇
    else if(preg_match("/mj12/", $agent))              { $s = "MJ12bot"; } //MJ12bot
    else if(preg_match("/baidu/", $agent))              { $s = "Baiduspider"; } //Baiduspider
    else if(preg_match("/yandex/", $agent))            { $s = "YandexBot"; } //YandexBot로봇
    else if(preg_match("/Sogou/", $agent))              { $s = "Sogou web spider"; } //Sogou로봇
    else if(preg_match("/tweetedtimes/", $agent))      { $s = "TweetedTimes Bot"; } //TweetedTimes Bot
    else if(preg_match("/discobot/", $agent))          { $s = "Discoveryengine Robot"; } //Discoveryengine로봇
    else if(preg_match("/twiceler/", $agent))          { $s = "Twiceler Robot"; } //Twiceler로봇
    else if(preg_match("/ezooms/", $agent))            { $s = "Ezooms Robot"; } //Ezooms로봇
    else if(preg_match("/wbsearch/", $agent))          { $s = "WBSearchBot"; } //WBSearchBot
    else if(preg_match("/proximic/", $agent))          { $s = "proximic"; } //proximic로봇
    else if(preg_match("/GTWek/", $agent))              { $s = "GTWek"; } //GTWek로봇
    else if(preg_match("/java|python|axel|dalvik|greatnews|hmschnl|huawei|jakarta|netcraft|parrotsite|readability|unwind|pagepeeker|shunix|crystalsemantics|turnitin|komodia|siteIntel|apercite|butterfly/", $agent))          { $s = "Unknown Robot"; } //Unknown로봇
    else if(preg_match("/cron/", $agent))              { $s = "WebCron"; } //WebCron
    else if(preg_match("/capture/", $agent))            { $s = "WebCapture"; } //WebCapture로봇
    else if(preg_match("/w3c/", $agent))                { $s = "W3C Validator"; } //W3C Validator
    else if(preg_match("/wget/", $agent))              { $s = "Wget Validator"; } //Wget
    else if(preg_match("/hanrss/", $agent))            { $s = "HanRSS"; } //HanRSS
    else if(preg_match("/fetcher/", $agent))            { $s = "Feed Fetcher"; } //Feed Fetcher
    else if(preg_match("/feed|reader|rss|greatnews/", $agent))                  { $s = "Feed Reader"; } //Feed Reader
    else if(preg_match("/bot|slurp|scrap|spider|crawl|curl/", $agent))          { $s = "Robot"; }
    else if(preg_match("/msie 5.5[0-9]*/", $agent))    { $s = "MSIE 5.5"; }
    else if(preg_match("/msie 6.0[0-9]*/", $agent))    { $s = "MSIE 6.0"; }
    else if(preg_match("/msie 7.0[0-9]*/", $agent))    { $s = "MSIE 7.0"; }
    else if(preg_match("/msie 8.0[0-9]*/", $agent))    { $s = "MSIE 8.0"; }
    else if(preg_match("/msie 9.0[0-9]*/", $agent))    { $s = "MSIE 9.0"; }
    else if(preg_match("/msie 10.0[0-9]*/", $agent))    { $s = "MSIE 10.0"; }
    else if(preg_match("/msie 4.[0-9]*/", $agent))      { $s = "MSIE 4.x"; }
    else if(preg_match("/firefox/", $agent))            { $s = "FireFox"; }
    else if(preg_match("/chrome/", $agent))            { $s = "Chrome"; }
    else if(preg_match("/x11/", $agent))                { $s = "Netscape"; }
    else if(preg_match("/opera/", $agent))              { $s = "Opera"; }
    else if(preg_match("/safari/", $agent))            { $s = "Safari"; }
    else if(preg_match("/netFront/", $agent))          { $s = "NetFront"; }
    else if(preg_match("/gec/", $agent))                { $s = "Gecko"; }
    else if(preg_match("/internet explorer/", $agent))  { $s = "IE"; }
    else if(preg_match("/mozilla/", $agent))            { $s = "Mozilla"; }
    else { $s = "기타"; }

    return $s;
}
================================================================================================
g4_visit 테이블 보고 분석해봤습니다.

기본 네이버, 다음, 네이트 어플은 추가했는대 구글 어플은 에이전트명은 찾다기 귀찮아서 패스;;;
3월 30일 01:00시경 구글 어플 추가.

찾다기 신기한건 스마트TV로 접속한 사람도 있었다는거.
추천
12

댓글 17개

전체 9 |RSS
그누4 팁자료실 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT