Login   Register  
PHP Classes
elePHPant
Icontem

Bot recognizer and dispatcher

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Alexander Selifonov
Name: Alexander Selifonov is available for providing paid consulting. Contact Alexander Selifonov .
Packages: 14 Browse all classes by Alexander Selifonov Browse all classes by
Country: Russian Federation Russian Federation - PHP jobs in Russian Federation
Age: 50
All time rank: 622 in Russian Federation Russian Federation
Week rank: 35 Up3 in Russian Federation Russian Federation Down
Innovation award
Innovation award
Nominee: 11x

Winner: 2x


  Detailed description   Download .zip .tar.gz  
This class can be used to recognize and handle Web robots by IP address or user agent.

It can check the IP address of the computer or the user agent of the browser program currently accessing the Web server to determine if it is within a range of IP addresses known to be of Web robots like search engine site crawlers or even malicious crawlers.

The class can call different callback functions depending on the type of crawler that was identified.

It can also be set on debug mode by taking a given IP address or string as user agent instead of the user agent string sent by the accessing browser.

The Web robots information is stored in a database. The class can load that database from a text data file. The database can be accessed using supplied database class or a database adapter class from the Zend Framework.

  Classes of Alexander Selifonov  >  Bot recognizer and dispatcher  >  Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Bot recognizer and dispatcher
Base name: bot_recognizer
Description: Recognize and handle Web robot by IP or user agent
Version: 1.0
PHP version: 5.0
License: BSD License
All time users: 1006 users
All time rank: 3191
Week users: 0 users
Week rank: 2046 Equal
 
  Groups   Freshmeat project   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Security Security protection and attack detection View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
October 2009
Number 2

Prize: One downloadable copy of PhpED Professional
If you want to detect whether the computer accessing a site is from a person, a search engine robot crawling your site or some kind a malicious program, you can check the user agent header.

However, that header can be forged with a misleading value to pretend that it is a search engine robot.

This class provides a more reliable solution that checks the IP address of the computer accessing the site against a list of IP address ranges known to be used by to search engine robots.

Manuel Lemos

  Freshmeat project  
Project record: bot_recognizer
Popularity score: 23.19
Vitality score: 36.82

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file bot_recognizer.php Class Main class module
Accessible without login Plain text file as_dbutils.php Aux. Database access wrapper, used in main module
Accessible without login Plain text file bot-defs.txt Data Initial bot definitions file
Accessible without login Plain text file import-botdefs.php Aux. Script for creating initial definition table in SQL database and import data from text source
Accessible without login Plain text file using-sample.php Example Using example script
Accessible without login HTML file bot_recognizer.en.htm Doc. Documentation (english)
Accessible without login HTML file bot_recognizer.ru.htm Doc. Documentation (russian)

Download all files: bot_recognizer.tar.gz bot_recognizer.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.