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

  Author Author  
Picture of David Ferreira
Name: David Ferreira <e-mail contact>
Packages: 4 Browse all classes by David Ferreira Browse all classes by
Country: Portugal Portugal - PHP jobs in Portugal
Age: 32
All time rank: 174024 in Portugal Portugal
Week rank: 2008 Down31 in Portugal Portugal Down


  Detailed description   Download Download .zip .tar.gz  
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

  Classes of David Ferreira  >  Rex  >  Download Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Rex
Base name: rex
Description: Check proxy addresses and filter Javascript
Version: 1.1
PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 511 users
All time rank: 5116
Week users: 0 users
Week rank: 1779 Equal
 
  Groups   Screenshots Screenshots   Freshmeat project   Rate classes User ratings  
  Trackback   Applications   Related links   Files Files  

  Groups  
Group folder image Networking Networking protocols, clients and servers View top rated classes
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Security Security protection and attack detection View top rated classes

  Files folder image Screenshots  
Log file example
File Role Description
Accessible without login Image file screenshot.jpg Screen Log file example


  Freshmeat project  
Project record: rex
Popularity score: 25.3
Vitality score: 1.42

  User ratings  
There are not enough user ratings to display for this class.

  Trackback links  
Link Description
Rex PHP class This class can be used to check if a given IP address could be a proxy server responding in ports usually used by proxies...

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
Rex - XSS demo Demonstration on Rex XSS detector

  Files folder image Files  
File Role Description
Files folder imageclass (1 file)
Files folder imagedocs (1 file)
Files folder imageexamples (4 files)

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

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

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

Download Download all files: rex.tar.gz rex.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.