detect real user agent

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

  • #16
    Oh check this out guys Detect Real User Agent (Original Code) enjoy ;)

    Comment


    • #17
      Originally posted by kiss View Post
      Oh check this out guys Detect Real User Agent (Original Code) enjoy ;)
      thanks for share but this is not what i need for my sites,
      i prefer the code which in the first post.

      Comment


      • #18
        Originally posted by GumSlone View Post
        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;
                }
            }

        Where to put this code

        Comment


        • #19
          Originally posted by stefan998 View Post

          Where to put this code
          anywhere you want to detect and use the real user agent

          Comment

          Working...
          X