PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2011-09-01 (5 years ago) RSS 2.0 feedStarStar 35%Total: 1,042 All time: 3,422 This week: 1,095Up
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
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:1,042
This week:0
All time:3,422
This week:1,095Up
User Ratings User Comments (2)
 All time
Utility:41%StarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:35%StarStar
Rank:2836