PHP Classes
elePHPant
Icontem

Rex: Check proxy addresses and filter Javascript

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2008-08-13 (8 years ago) RSS 2.0 feedNot enough user ratingsTotal: 552 All time: 5,236 This week: 1,087Up
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

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

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

  Files folder image Files  /  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  /  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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:552
This week:0
All time:5,236
This week:1,087Up
User Comments (2)