PHP Classes

File: docs/readme.txt

Recommend this page to a friend!
  Classes of David Ferreira   Rex   docs/readme.txt   Download  
File: docs/readme.txt
Role: Documentation
Content type: text/plain
Description: Example script on how to use Rex class
Class: Rex
Check proxy addresses and filter Javascript
Author: By
Last change: v1.1 updated
Date: 15 years ago
Size: 1,163 bytes


Class file image Download
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 (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 Rex v1.0 features: - Log activity into a file (IP, datetime and text) - Checks if the IP of the user is a Proxy - Checks XSS attacks from GET and POST method Usage/Sintaxe: checkip(IP); recordlog(IP, MSG) checkxss(METHOD) checkspamcop(IP) filterxss(VAR,OPTION) checksize_db_data(VAR,MINSIZE,MAXSIZE) filtersql(VAR) For better understanding, check also the example files.