PHP Classes

Filter Class: Filter to prevent XSS, SQL injection, CSRF attacks

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 51%Total: 1,873 This week: 1All time: 2,105 This week: 560Up
Version License PHP version Categories
filter-class 1.1Free For Educatio...4.0PHP 5, Validation, Security
Description 

Author

This package can filter values to prevent XSS, SQL injection, CSRF security attacks.

The main class can filter one value or an array of values by stripping HTML tags, adding slashes and escaping HTML entities.

Another class can prevent Cross-Site Request Forgery attacks by generating a secret token to be passed in forms, so it can verified later to avoid forms submitted by JavaScript code that executes automatically from other site pages.

Picture of Kumar Saurabh Sinha
  Performance   Level  
Name: Kumar Saurabh Sinha <contact>
Classes: 1 package by
Country: India India
Age: 36
All time rank: 157190 in India India
Week rank: 411 Up26 in India India Up

  Files folder image Files  
File Role Description
Plain text file FilterClass.php Class This class manages the data filteration for XSS and SQL Injection
Plain text file RestrictCSRF.php Class This is the RestrictCSRF Class
Accessible without login Plain text file usage_csrf.txt Doc. Readme for CSRF
Accessible without login Plain text file usage_filter_class.txt Doc. Readme for Filterclass

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,873
This week:1
All time:2,105
This week:560Up
User Ratings User Comments (4)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:65%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:51%StarStarStar
Rank:2506
 
This class helped me to understand the security measures for ...
10 years ago (Manish)
70%StarStarStarStar
good
10 years ago (Rahul Shambharkar)
70%StarStarStarStar
I m too good to find this code.
10 years ago (Aneesh Khan)
70%StarStarStarStar
The code was precise and useful.
10 years ago (Richa Parihar)
67%StarStarStarStar