Login   Register  
PHP Classes
elePHPant
Icontem

Rex: Check proxy addresses and filter Javascript

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-08-13 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 516 This week: 1All time: 5,151 This week: 1,420Up
Version License PHP version Categories  
rex 1.1GNU General Public Lice...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: 33
All time rank: 175024 in Portugal Portugal
Week rank: 752 Up9 in Portugal Portugal Up

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:516All time:5,151
 This week:1This week:1,420Up
 User Comments (2)