Login   Register  
PHP Classes
elePHPant
Icontem

PHP CSRF Protection class: Prevent CSRF request security 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 (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-09-19 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 565 This week: 4All time: 4,952 This week: 391Up
Version License PHP version Categories  
csrf-protector 1BSD License5.4HTML, PHP 5, Security
Description Author  

This package can be used to prevent CSRF request security attacks.

It can register a PHP shutdown function that will capture the current page output so it can be captured to be processed by the class.

It can parse the HTML of the captured page and replace the URLs of the links and forms to add a token that can be verified later to prevent Cross-Site Request Forgery attacks by validating the token.

Picture of jstar88
Name: jstar88 <contact>
Classes: 6 packages by
Country: Italy Italy
Age: ???
All time rank: 150660 in Italy Italy
Week rank: 305 Up18 in Italy Italy Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Files folder imagecore (3 files)
Files folder imageexamples (1 file)
Plain text file CSRFProtector.php Class Class source
Accessible without login Plain text file native.history.js Data Auxiliary data
Accessible without login HTML file readme.html Doc. Documentation
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  core  
File Role Description
  Plain text file CSRFBackEnd.php Class Class source
  Plain text file CSRFFrontEnd.php Class Class source
  Plain text file TokenManager.php Class Class source

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file Sample.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 87%Total:565All time:4,952
 This week:4This week:391Up