PHP Classes
Icontem

File: docs/readme.txt


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of David Ferreira  >  Rex  >  docs/readme.txt  
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
 

Contents

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 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

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.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products