PHP Classes

Bot Class: Simple check to see if the current user is a robot

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 359 All time: 6,925 This week: 455Up
Version License PHP version Categories
bot-class 1.0GNU General Publi...5.0HTTP, PHP 5
Description 

Author

This is a simple class to check to see if the current user is a robot.

It can check the user agent string to verify if it contains the word bot or the Facebook domain in it.

The class returns a simple Y or N value depending on whether it determine the current user is a robot or not.

Picture of Ruben Elizondo
Name: Ruben Elizondo <contact>
Classes: 1 package by
Country: Mexico Mexico

  Files folder image Files (1)  
File Role Description
Accessible without login Plain text file bot-class.php Example Check if the visitor is a robot

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:359
This week:0
All time:6,925
This week:455Up
User Comments (1)
It should return a boolean instead of a string.
9 years ago (André Karell Contreras Jiménez)
7%Star