PHP Classes

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    
Ratings Unique User Downloads Download Rankings
StarStarStar 42%Total: 565 This week: 1All time: 5,412 This week: 560Up
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: 42
All time rank: 185626 in Portugal Portugal
Week rank: 411 Up3 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:565
This week:1
All time:5,412
This week:560Up
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:3597