PHP Classes
elePHPant
Icontem

Defensive Attack: Retrieve information of current user HTTP request

Recommend this page to a friend!
  Info   View files View files (90)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2006-11-01 (9 years ago) RSS 2.0 feedStarStarStar 53%Total: 2,479 All time: 1,500 This week: 1,090Up
Version License Categories
defensive_attack 1.0GNU General Publi...HTTP, PHP 5, Security
Description Author

This class can be used to get and set information about the current user HTTP request details to help protecting against unintended accesses. It can:

- Determine the user machine real IP address even when it is behind a proxy.
- Check whether the user IP address is the same as the Web server IP address
- Determine whether the user is behind a proxy
- Set, remove and check a response cookie that determines whether the current user is banned from accessing the site
- Retrieve the request referrer page domain
- Retrieve the request query parameters
- Get the cookie request data

Picture of Todor Iliev
Name: Todor Iliev <contact>
Classes: 2 packages by
Country: United Kingdom United Kingdom
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imagedoc (11 files, 5 directories)
Plain text file class.php4.DefensiveAttack.php Class PHP4 class
Plain text file class.php5.DefensiveAttack.php Class PHP5 Class
Accessible without login Plain text file example_1.php Example IP address identity. Make ip allow or not.
Accessible without login Plain text file example_2.php Example Look for proxy using.
Accessible without login Plain text file example_3.php Example Check referer.
Accessible without login Plain text file example_4.php Example Smart cookie trick. Ban with cookie.
Accessible without login Plain text file example_5.php Example Class extends. Check referer with "www" and without "www".

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,479
This week:0
All time:1,500
This week:1,090Up
 User Ratings  
 
 All time
Utility:65%StarStarStarStar
Consistency:71%StarStarStarStar
Documentation:65%StarStarStarStar
Examples:71%StarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:1743