PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 51%Total: 1,874 All time: 2,105 This week: 146Up
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

  Files folder image Files (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,874
This week:0
All time:2,105
This week:146Up
User Ratings User Comments (4)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:65%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:51%StarStarStar
Rank:2566
 
This class helped me to understand the security measures for ...
11 years ago (Manish)
70%StarStarStarStar
good
11 years ago (Rahul Shambharkar)
70%StarStarStarStar
I m too good to find this code.
11 years ago (Aneesh Khan)
70%StarStarStarStar
The code was precise and useful.
11 years ago (Richa Parihar)
67%StarStarStarStar