detect real user agent

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

    detect real user agent

    PHP Code:
    function gum_real_ua()
    {
    //GET REAL DEVICE USER AGENT
         
    $keyname_ua_arr = array('HTTP_X_ORIGINAL_USER_AGENT','HTTP_X_DEVICE_USER_AGENT''HTTP_X_OPERAMINI_PHONE_UA','HTTP_X_BOLT_PHONE_UA''HTTP_X_MOBILE_UA''HTTP_USER_AGENT');
        foreach (
    $keyname_ua_arr as $keyname_ua) {
            if (!empty(
    $_SERVER[$keyname_ua])) {
                return 
    $_SERVER[$keyname_ua]; //REAL UA
                
    break;
            }
        }

    Advertise your mobile site for FREE with AdTwirl


    #2
    Nice. Was looking for the break, and there it was!
    Perfection comes at a cost



    I accept liberty!

    Comment


      #3
      Thanks 4 this
      ยป PornZeriEs.com - | New! Hottest Porn Movies

      Comment


        #4
        hey gumslone plz share user agent script that will original user like *dont spam here* his user agent script will show original user agent(mobile) if any one use any browser

        check this Free Call Software For Ur Opera 9.80 on *dont spam here*

        Comment


          #5
          PHP Code:
          $short explode(' 'gum_real_ua());
          echo 
          '
          Free Call Software For Ur '
          .$short[0]; 
          Last edited by arnage; 15.05.11, 19:43.
          <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

          Comment


            #6
            yeah thnx bro

            Originally posted by arnage View Post
            PHP Code:
            $short explode(' 'gum_real_ua());
            echo 
            '
            Free Call Software For Ur '
            .$short[0]; 

            Comment


              #7
              U r welcome. ;)
              <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

              Comment


                #8
                I made my own code to detect the real browser ;) Demo: www.tinytop.mobi/browser.php

                - Firefox X, Opera X, Chrome x, Safari X, Msie X, K-Meleon X, SeaMonkey X, Camino X, Lynx X, amaya X, Anonymouse + some bots: Google, Msn, Yahoo, Bing, Aol, DoCoMo, Baiduspider, WebCopier, Java
                - Uc Browser 5.x, 6.x, 7.x
                - Opera Mini 3.x, 4.x, 5.x, 6.x
                - Opera Mobile 10.x, 11.x
                - Opera SmartPhone 8.x
                - BoltBrowser 2.x
                - Netfront 3.x
                - portalmmm 2.x
                - Nintendo Wii
                Last edited by kiss; 04.10.11, 17:29.
                www.inbuzunar.mobi - Your mobile portal pocket

                Comment


                  #9
                  Originally posted by kiss View Post
                  I made my own code to detect the real browser ;) Demo: http://www.whatmp3.name/real_browser.php

                  - Firefox X, Opera X, Chrome x, Safari X, Msie X, K-Meleon X, SeaMonkey X, Camino X, Lynx X, amaya X, Anonymouse + some bots: Google, Msn, Yahoo, Bing, Aol, DoCoMo, Baiduspider, WebCopier, Java
                  - Uc Browser 5.x, 6.x, 7.x
                  - Opera Mini 3.x, 4.x, 5.x, 6.x
                  - Opera Mobile 10.x, 11.x
                  - Opera SmartPhone 8.x
                  - BoltBrowser 2.x
                  - Netfront 3.x
                  - portalmmm 2.x
                  - Nintendo Wii
                  Good! Share?
                  mysterio.al - programming is a functional art

                  Comment


                    #10
                    If i share this code someone will sell it like i see around internet what it's gonna happen with someone work
                    www.inbuzunar.mobi - Your mobile portal pocket

                    Comment


                      #11
                      just share it already :/

                      Comment


                        #12
                        Here is a good code :

                        Comment


                          #13
                          Originally posted by mtz View Post
                          your code is not for mobile browsers and it does not detect the default phone useragent.
                          Advertise your mobile site for FREE with AdTwirl

                          Comment


                            #14
                            Gums user agent with random link

                            ><?
                            function gum_real_ua()
                            {
                            //GET REAL DEVICE USER AGENT
                            $keyname_ua_arr = array('HTTP_X_DEVICE_USER_AGENT', 'HTTP_X_OPERAMINI_PHONE_UA','HTTP_X_BOLT_PHONE_UA' , 'HTTP_X_MOBILE_UA', 'HTTP_USER_AGENT');
                            foreach ($keyname_ua_arr as $keyname_ua) {
                            if (!empty($_SERVER[$keyname_ua])) {
                            return $_SERVER[$keyname_ua]; //REAL UA
                            break;
                            }
                            }
                            }
                            $mayur= explode(' ', gum_real_ua());
                            $shona=$mayur[0];
                            $urls = array("http://top.sendwap.com/?id=mirchiwapin" ,"http://top.sendwap.com/?id=mirchiwapin","http://inztop.com/in.php?sid=761", "http://neti.mobi/site=mirchiwapin", "http://bestwapi.com/?id=mirchiwapin");
                            $text = array("Call App for", "Internet Download Manager for", "Katil Browser for", "3d Games for", "Powerfull Software for ");
                            srand(time());
                            //set the number in (rand()%3); for however many links there are
                            $random = (rand()%7);
                            echo ("<a href = \"$urls[$random]\">$text[$random] $shona</a>");
                            ?>

                            try this user agent with random links

                            Comment


                              #15
                              function updated, added HTTP_X_ORIGINAL_USER_AGENT
                              Advertise your mobile site for FREE with AdTwirl

                              Comment

                              Working...
                              X