Detect Real User Agent (Original Code)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Detect Real User Agent (Original Code)

    I thought to share with you the code that detects real user agent Demo: www.tinytop.mobi
    Attached Files
    Last edited by kiss; 23.02.12, 19:04.
    www.inbuzunar.mobi - Your mobile portal pocket

    #2
    cu ce l-ai scris de e in valuri asa ? )

    en: what php editor did u used () ;
    This is ten percent luck, twenty percent skill
    Fifteen percent concentrated power of will
    Five percent pleasure, fifty percent pain

    And a hundred percent reason to remember the name!

    Comment


      #3
      i just edited user agent in firefox to nokia 600 but its detect nokia 600 not mozilla firefox agent then how it detecting real user agent?

      Comment


        #4
        Is tabulated with phpdesigner
        Last edited by kiss; 08.02.12, 15:06.
        www.inbuzunar.mobi - Your mobile portal pocket

        Comment


          #5
          It works with me after I changed my browser identification on my blackberry to to mozilla ?????

          FAKE: Mozilla/5.0 (BlackBerry; U; BlackBerry 9780; en) AppleWebKit/534.8+ (KHTML, like Gecko) Version/6.0.0.546 Mobile Safari/534.8+ (code update - 02.02.2012, 02.02 Ro)

          REAL: BlackBerry 9780
          My site: http://mimobifunclub.tk
          sigpic

          Comment


            #6
            maybe this code will detect real ua.
            Code:
            <?php
            $real=$_SERVER['HTTP_X_OPERAMINI_PHONE_UA'];
            $real = strtok($real, "/");
            $brow = $_SERVER['HTTP_USER_AGENT'];
            $brow = strtok($brow, "/");
            if (isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA'])){
            $ua = $real;
            } else {
            $ua = $brow;
            }
            Last edited by gorillaz; 16.02.12, 14:50.

            Comment


              #7
              Nice Script and it is fully Working,,,,,,,,,

              Comment


                #8
                You are all welcome : enjoy the code..
                www.inbuzunar.mobi - Your mobile portal pocket

                Comment


                  #9
                  It's Mine. Just a few code.

                  PHP Code:
                  function getoribrowser($_mob_browser){
                  if(
                  preg_match('/(google|bot)/i',strtolower($_mob_browser))){
                  $position strpos(strtolower($_mob_browser),"bot");
                  $_mob_browser substr($_mob_browser$position-30$position+2);
                  $_browser explode (" "$_mob_browser);
                  $_browser array_reverse($_browser); 
                  }else if (isset(
                  $_SERVER['HTTP_X_OPERAMINI_PHONE_UA'])) {
                  $_mob_browser $_SERVER['HTTP_X_OPERAMINI_PHONE_UA'];
                  $_position=strpos(strtolower($_mob_browser),"nokia");
                  if(
                  $_position)$_mob_browser substr($_mob_browser$_position,25);
                  $_browser explode ("/"$_mob_browser);
                  }else {
                  $_position=strpos(strtolower($_mob_browser),"nokia");
                  if(
                  $_position)$_mob_browser substr($_mob_browser$_position,25);
                  $_browser explode ("/"$_mob_browser);
                  }
                  return 
                  $_browser[0];

                  Last edited by m4ster_v4; 25.02.12, 12:16.
                  sigpic
                  Visit my WEBSITE Project: http://www.aspirewap.net

                  Comment


                    #10
                    Code update or visit site
                    Attached Files
                    www.inbuzunar.mobi - Your mobile portal pocket

                    Comment


                      #11
                      Why "Nokia/" with slash

                      Comment


                        #12
                        Ohhh, why you post offtopic? Don't ask why the code it write in some way, download & use it..if you know how :D
                        www.inbuzunar.mobi - Your mobile portal pocket

                        Comment


                          #13
                          Oh . . .boring kiss . . Why you dont code behind the operamini agent , . . Aha. . . Why

                          Comment


                            #14
                            New update, check the site..
                            www.inbuzunar.mobi - Your mobile portal pocket

                            Comment


                              #15
                              Final update with major changes, enjoy the best user agent detector www.tinytop.mobi
                              www.inbuzunar.mobi - Your mobile portal pocket

                              Comment

                              Working...
                              X