PHP Classes

Rex: Check proxy addresses and filter Javascript

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 42%Total: 566 All time: 5,407 This week: 140Up
Version License PHP version Categories
rex 1.1GNU General Publi...5.0Networking, HTTP, PHP 5, Security
Description 

Author

This class can be used to check if a given IP address could be a proxy server responding in ports usually used by proxies. It can generate a log with IP addresses and the information whether it can be a proxy.

It can also check if an array of POST or GET values contains HTML excerpts with Javascript that could be used to perform XSS (Cross-site scripting) attacks.

Rex v1.1 features:
- Proxy port scan can be disabled (in some cases, it blocks users that have port 80 open in their router configuration)
- Added checkspamcop() that checks if a user IP is registered as spammer on Spamcop.net (can be enabled/diabled)
- Function filtraxss() renamed to checkxss() because it really checks the presence of malicious xss doesn't filter anything
- Function checkxss() only accepts arrays
- Added filterxss() that removes or disables tags
- Added checksize_db_data() that can be used to check for data size before inserting in database
- Added filtersql() that escapes special characters in a string for use in a SQL statement
- Portuguese variables renamed to english for better understanding the code to a larger community

Picture of David Ferreira
Name: David Ferreira <contact>
Classes: 4 packages by
Country: Portugal Portugal
Age: 43
All time rank: 185826 in Portugal Portugal
Week rank: 180 Up2 in Portugal Portugal Up

Screenshots (1)  
  • screenshot.jpg
  Files folder image Files (7)  
File Role Description
Files folder imageclass (1 file)
Files folder imagedocs (1 file)
Files folder imageexamples (4 files)

  Files folder image Files (7)  /  class  
File Role Description
  Accessible without login Plain text file rex.class.php Class The class itself

  Files folder image Files (7)  /  docs  
File Role Description
  Accessible without login Plain text file readme.txt Doc. Example script on how to use Rex class

  Files folder image Files (7)  /  examples  
File Role Description
  Accessible without login Plain text file example1.php Example Example script on how to use Rex class
  Accessible without login Plain text file example2.php Example Example script on how to use Rex class
  Accessible without login Plain text file example3.php Example Example script on how to use Rex class
  Accessible without login Plain text file example4.php Example Example script on how to use Rex class

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:566
This week:0
All time:5,407
This week:140Up
User Ratings User Comments (2)
 All time
Utility:50%StarStarStar
Consistency:58%StarStarStar
Documentation:50%StarStarStar
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:42%StarStarStar
Rank:3653