Login   Register  
PHP Classes
elePHPant
Icontem

CSRF protector

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

  Author  
Picture of Michael A. Peters
Name: Michael A. Peters <e-mail contact>
Packages: 6 Browse all classes by Michael A. Peters Browse all classes by
Country: United States United States - PHP jobs in United States
Age: 40
All time rank: 903119 in United States United States
Week rank: 467 Up47 in United States United States Up
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download .zip .tar.gz  
This class can be used to prevent Cross-site Request Forgery (CSRF) exploits by storing token keys in database.

It can generate a random key and store it in a database record associated to the current session. It uses PEAR MDB2 database abstraction layer to support many types of databases.

The class can also check if the key is valid when the form is submitted with a token hidden input field. If it exists, the key record is deleted from the database to avoid it is reused.

  Classes of Michael A. Peters  >  CSRF protector  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: CSRF protector
Base name: csrf_class
Description: Prevent CSRF exploits by storing keys in database
Version: 1.0
PHP version: 5
License: Public Domain
All time users: 692 users
All time rank: 4083
Week users: 2 users
Week rank: 1303 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Databases Database management, accessing and searching View top rated classes
Group folder image User Management User records, authentication and session handling View top rated classes
Group folder image Security Security protection and attack detection View top rated classes


  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
Plain text file csrf_class.php Class Class File
Accessible without login HTML file README.html Doc. Documentation

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