PHP Classes

police: Detect and record eventual SQL injection attacks

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 35%Total: 1,068 All time: 3,479 This week: 146Up
Version License PHP version Categories
police 1Artistic License4.0Databases, Security


This class can detect and record eventual SQL injection attacks.

It analyzes the value of parameter that is expected to be a number and if it is numeric, it just cleans any exceeding characters.

If the analyzed parameter value is not numeric, the class add records to a MySQL database with information of the eventual SQL injection attacker details like the IP address, browser identification, logged user name and current date.

this is a security class for control sql injection attacks.

Innovation Award
PHP Programming Innovation award nominee
August 2011
Number 2

Prize: One copy of VS.PHP
SQL injection attacks can be dangerous to a site, as they can make the site work in a way that is controlled by a malicious person.

This class can be used to prevent causing greater damage to a site by detecting eventual SQL injection attacks and blocking the accesses of computers that were used to perform such kind of attack attempts.

Manuel Lemos
Picture of omid zarifi
Name: omid zarifi <contact>
Classes: 4 packages by
Country: United States United States
Age: 34
All time rank: 1270183 in United States United States
Week rank: 195 Up28 in United States United States Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Plain text file class.police.php Class police class
Accessible without login Plain text file index.php Example test index
Accessible without login Plain text file police.htm Data police file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,479
This week:146Up
User Ratings User Comments (2)
 All time