Destramic Posted June 1, 2015 Share Posted June 1, 2015 i've just installed browscap (maybe behind the times)...but impressive stuff...just a few questions though the [crawler] key...would i be correct in saying it detects if its a bot browsing also [browser_type] what does this mean exactly? some info on this would be great...thanks guys //returned from: get_browser(); stdClass Object ( [browser_name_regex] => ~^mozilla/5\.0 \(.*windows nt 6\.1.*wow64.*\).*gecko/.*firefox/.*$~ [browser_name_pattern] => Mozilla/5.0 (*Windows NT 6.1*WOW64*)*Gecko/*Firefox/* [parent] => Firefox Generic [browser_bits] => 32 [platform] => Win7 [platform_version] => 6.1 [platform_description] => Windows 7 [platform_bits] => 64 [platform_maker] => Microsoft Corporation [win32] => [win64] => 1 [device_name] => Windows Desktop [device_code_name] => Windows Desktop [comment] => Firefox Generic [browser] => Firefox [browser_type] => Browser [browser_maker] => Mozilla Foundation [frames] => 1 [iframes] => 1 [tables] => 1 [cookies] => 1 [javascript] => 1 [javaapplets] => 1 [cssversion] => 3 [device_maker] => Various [device_type] => Desktop [device_pointing_method] => mouse [renderingengine_name] => Gecko [renderingengine_description] => For Firefox, Camino, K-Meleon, SeaMonkey, Netscape, and other Gecko-based browsers. [renderingengine_maker] => Mozilla Foundation [browser_modus] => unknown [version] => 0.0 [majorver] => 0 [minorver] => 0 [alpha] => [beta] => [win16] => [backgroundsounds] => [vbscript] => [activexcontrols] => [ismobiledevice] => [istablet] => [issyndicationreader] => [crawler] => [aolversion] => 0 [device_brand_name] => unknown [renderingengine_version] => unknown ) Link to comment https://forums.phpfreaks.com/topic/296589-browscap-get_browser/ Share on other sites More sharing options...
dalecosp Posted June 1, 2015 Share Posted June 1, 2015 Correct in both assumptions.browser_type is typically "Browser", "Bot/Crawler", or "Application". Link to comment https://forums.phpfreaks.com/topic/296589-browscap-get_browser/#findComment-1513003 Share on other sites More sharing options...
Destramic Posted June 1, 2015 Author Share Posted June 1, 2015 browser_type is typically "Browser", "Bot/Crawler", or "Application" brillaint...hopefully the end to captcha as i hate them so much! what key would be the name of the bot please? obviously i wouldn't want to block the good bots from accessing my pages...thank you for your reply Link to comment https://forums.phpfreaks.com/topic/296589-browscap-get_browser/#findComment-1513006 Share on other sites More sharing options...
dalecosp Posted June 1, 2015 Share Posted June 1, 2015 Well, you can look for yourself at http://browscap.org/ "Browser" is usually a meaningful name. You might want to use a strtok() or stristr() or similar, as there are lots of everything in the file. Link to comment https://forums.phpfreaks.com/topic/296589-browscap-get_browser/#findComment-1513007 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.