Jump to content

is browser or is bot


andyd34

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.