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 55%Total: 1,867 All time: 2,112 This week: 102Up
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: 35
All time rank: 157590 in India India
Week rank: 609 Up49 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,867
This week:0
All time:2,112
This week:102Up
User Ratings User Comments (4)
 All time
Utility:81%StarStarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:68%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:55%StarStarStar
Rank:1845
 
This class helped me to understand the security measures for ...
9 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