Detect Real User Agent (Grabber)

Started on the old forum in October 2011 · view the original in the archive · old links redirect here

16 replies · 1,706 views · started 15 years ago · 1 min read

8 participants
atef Developer · 224 posts #2

its showing the browser FAKE: Opera/9.80 (Series 60; Opera Mini/5.1.22396/26.958; U;en) Presto/2.8.119 Version/10.54 REAL: Opera Mini/5.1

arnage Lead · 811 posts #4

U know the difference between UserAgent ("FAKE") and SoftwareVersion ("REAL") right?

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
nenadic Newbie · 6 posts #6

So give us the real script what the hell is the point in grabbing browser script:D

vijayakumar Junior · 33 posts #9

ha ha grab from your site you give any confirmation to never change your page ❗

metulj Super moderator Principal · 1,726 posts #12

somehow i just don't get it...😳 i mean..😳 i dont understand, why you need any script for detecting browser ??

DEMO !!(it is JUST two lines of simple code)

demo site fixed now, so you got actualy displayed:

  • browser
  • code how to display browser

unbelievable i'ts free, unlike here ==>>> 15 € ??? WTF p.s. I did not know, that is sooo(kind a... LFMAO) hard, to display PHP code on simple site, but OK, I've learnt now that too :)

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

subzero Super moderator Fellow · 3,954 posts #13
function is_bot($user_agent)
{
  //if no user agent is supplied then assume it's a bot
  if($user_agent == "")
    return 1;

  //array of bot strings to check for
  $bot_strings = Array(  "google",     "bot",
            "yahoo",     "spider",
            "archiver",   "curl",
            "python",     "nambu",
            "twitt",     "perl",
            "sphere",     "PEAR",
            "java",     "wordpress",
            "radian",     "crawl",
            "yandex",     "eventbox",
            "monitor",   "mechanize",
            "facebookexternal"
          );
  foreach($bot_strings as $bot)
  {
    if(strpos($user_agent,$bot) !== false)
    { return 1; }
  }
  
  return 0;
}
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; 
        } 
    } 
} 

Browser.php – Detecting a user’s browser from PHP | Chris Schuld's Blog

Good Luck Kiss

Boom other found.

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

metulj Super moderator Principal · 1,726 posts #15

GumSlone wrote: just leave him 🙂 dont destroy his ego, he has probably spent many hours/days on coding his script

many hours ? LOL it take less than 2 minutes to put browser_detect code on server LOL

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

kiss Senior · 294 posts #17

If a browser is not english name or not exist in the code....result will be UNKNOWN 🙂 And yes i spent many hours testing and coding.

www.inbuzunar.mobi -Your mobile portal pocket

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close