PHP Classes

Defensive Attack: Retrieve information of current user HTTP request

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 52%Total: 2,520 All time: 1,529 This week: 35Up
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
Innovation award
Innovation award
Nominee: 1x

 

  Files folder image Files (90)  
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".

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,520
This week:0
All time:1,529
This week:35Up
 User Ratings  
 
 All time
Utility:63%StarStarStarStar
Consistency:69%StarStarStarStar
Documentation:63%StarStarStarStar
Examples:69%StarStarStarStar
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2459