Login   Register  
PHP Classes
elePHPant
Icontem

police: Detect and record eventual SQL injection attacks

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-09-01 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 941 This week: 4All time: 3,555 This week: 384Up
Version License PHP version Categories  
police 1Artistic License4.0Databases, Security
Description Author  

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: Iran Iran
Age: 24
All time rank: 123712 in Iran Iran
Week rank: 339 Up10 in Iran Iran 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  
 0%Total:941All time:3,555
 This week:4This week:384Up
 User Comments (2)