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 Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted March 6, 2011 Share Posted March 6, 2011 Here you go. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.