andyd34 Posted March 6, 2011 Share Posted March 6, 2011 I am trying to come up with a script that will detect whether the requesting user agent is a bot or a browser, as their are so many bots and scripts around i have decided to go with the latter so i need a list of browsers that may be used to do the following $browser_array = array(list of browsers..................); if(!in_array($_SERVER['HTTP_USER_AGENT'], $browser_array)) { output text; } else { output html; } so basically i am now stuck without a complete list of user agents so if anyone knows where i can find a list it would be much appreciated Link to comment https://forums.phpfreaks.com/topic/229804-is-browser-or-is-bot/ Share on other sites More sharing options...
Pikachu2000 Posted March 6, 2011 Share Posted March 6, 2011 Here you go. Link to comment https://forums.phpfreaks.com/topic/229804-is-browser-or-is-bot/#findComment-1183681 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.