PHP Classes

PHP Secx: Search request values for suspicious text keywords

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 284 All time: 7,565 This week: 146Up
Version License PHP version Categories
php-security-xss-sql 1The PHP License5PHP 5, Validation, Security
Description 

Author

This is a simple class that can search request values for suspicious text keywords.

It can traverse the request values arrays and checks if they contain values that sometimes are used for security attacks like SQL injection and cross-site scripting.

The class can check either $_REQUEST, $_POST or $_GET values. If suspicious values are found in these request values, the class exits.

Picture of Kaz?m Ölmez
  Performance   Level  

 

Example

<?php
require_once('php_secx.php');
$secx = new Php_secx();
$secx->full_secx();
?>


  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file full_test.php Example Example script
Accessible without login Plain text file get_test.php Example Example script
Accessible without login Plain text file LICENSE Data Auxiliary data
Plain text file php_secx.php Class Class source
Accessible without login Plain text file post_test.php Example Example script

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  
 100%
Total:284
This week:0
All time:7,565
This week:146Up
User Comments (1)
it's working
9 years ago (alexandru traian)
70%StarStarStarStar