Login   Register  
PHP Classes
elePHPant
Icontem

XSS Police: Block accesses attempting to perform XSS attacks

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

  Author Author  
Picture of omid zarifi
Name: omid zarifi <e-mail contact>
Packages: 4 Browse all classes by omid zarifi Browse all classes by
Country: Iran Iran - PHP jobs in Iran
Age: 24
All time rank: 126213 in Iran Iran
Week rank: 571 Up8 in Iran Iran Up
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download Download .zip .tar.gz  
This class can block accesses attempting to perform cross-site scripting attacks.

It can look at a given request variable value and detect character sequences that can be used in cross-site scripting attacks.

If an eventual attack is detected, the class can add a record to a MySQL database table to mark the current access IP address to be blocked in future accesses.

  Classes of omid zarifi  >  XSS Police  >  Download Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: XSS Police
Base name: xss-attack-police
Description: Block accesses attempting to perform XSS attacks
Version: 1
PHP version: 3
License: Artistic License
All time users: 1040 users
All time rank: 3237
Week users: 2 users
Week rank: 1120 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image Security Security protection and attack detection View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
August 2011
Number 4
Cross-site scripting attacks can be dangerous to a site, as they can be used to steal cookies of users accessing a site and eventually allow a malicious person to access the site as if he was one of the other users.

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

Manuel Lemos

  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
Accessible without login Plain text file attack.sql Data mysql db file
Plain text file class.xss.police.php Class class file
Accessible without login Plain text file config.php Conf. config db
Accessible without login Plain text file index.php Example index page for test
Accessible without login HTML file police.html Data suspend page for attacker

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