PHP Classes

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    
Ratings Unique User Downloads Download Rankings
StarStarStar 52%Total: 2,516 All time: 1,532 This week: 182Up
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
Age: 42
All time rank: 89542 in United Kingdom
Week rank: 312 Up8 in United Kingdom Up
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".

  Files folder image Files  /  doc  
File Role Description
Files folder imageDefensiveAttack (8 files)
Files folder imagemedia (2 files, 1 directory)
Files folder imageMyDefensiveAttack (1 file)
Files folder image__examplesource (5 files)
Files folder image__filesource (7 files)
  Accessible without login HTML file blank.html Doc. Methods and attributes documentation
  Accessible without login HTML file classtrees_DefensiveAttack.html Doc. Methods and attributes documentation
  Accessible without login HTML file classtrees_MyDefensiveAttack.html Doc. Methods and attributes documentation
  Accessible without login HTML file elementindex.html Doc. Methods and attributes documentation
  Accessible without login HTML file elementindex_DefensiveAttack.html Doc. Methods and attributes documentation
  Accessible without login HTML file elementindex_MyDefensiveAttack.html Doc. Methods and attributes documentation
  Accessible without login HTML file index.html Doc. Methods and attributes documentation
  Accessible without login HTML file li_DefensiveAttack.html Doc. Methods and attributes documentation
  Accessible without login HTML file li_MyDefensiveAttack.html Doc. Methods and attributes documentation
  Accessible without login HTML file packages.html Doc. Methods and attributes documentation
  Accessible without login Plain text file Readme.txt Doc. Methods and attributes documentation

  Files folder image Files  /  doc  /  DefensiveAttack  
File Role Description
  Accessible without login HTML file DefensiveAttack.html Doc. Methods and attributes documentation
  Accessible without login HTML file _class.php4.DefensiveAttack.php.html Doc. Methods and attributes documentation
  Accessible without login HTML file _class.php5.DefensiveAttack.php.html Doc. Methods and attributes documentation
  Accessible without login HTML file _example_1.php.html Doc. Methods and attributes documentation
  Accessible without login HTML file _example_2.php.html Doc. Methods and attributes documentation
  Accessible without login HTML file _example_3.php.html Doc. Methods and attributes documentation
  Accessible without login HTML file _example_4.php.html Doc. Methods and attributes documentation
  Accessible without login HTML file _example_5.php.html Doc. Methods and attributes documentation

  Files folder image Files  /  doc  /  media  
File Role Description
Files folder imageimages (49 files)
  Accessible without login Plain text file banner.css Data Methods and attributes documentation
  Accessible without login Plain text file stylesheet.css Data Methods and attributes documentation

  Files folder image Files  /  doc  /  media  /  images  
File Role Description
  Accessible without login Image file AbstractClass.png Icon Methods and attributes documentation
  Accessible without login Image file AbstractClass_logo.png Icon Methods and attributes documentation
  Accessible without login Image file AbstractMethod.png Icon Methods and attributes documentation
  Accessible without login Image file AbstractPrivateClass.png Icon Methods and attributes documentation
  Accessible without login Image file AbstractPrivateClass_logo.png Icon Methods and attributes documentation
  Accessible without login Image file AbstractPrivateMethod.png Icon Methods and attributes documentation
  Accessible without login Image file blank.png Icon Methods and attributes documentation
  Accessible without login Image file Class.png Icon Methods and attributes documentation
  Accessible without login Image file class_folder.png Icon Methods and attributes documentation
  Accessible without login Image file Class_logo.png Icon Methods and attributes documentation
  Accessible without login Image file Constant.png Icon Methods and attributes documentation
  Accessible without login Image file Constructor.png Icon Methods and attributes documentation
  Accessible without login Image file Destructor.png Icon Methods and attributes documentation
  Accessible without login Image file empty.png Icon Methods and attributes documentation
  Accessible without login Image file file.png Icon Methods and attributes documentation
  Accessible without login Image file folder.png Icon Methods and attributes documentation
  Accessible without login Image file Function.png Icon Methods and attributes documentation
  Accessible without login Image file function_folder.png Icon Methods and attributes documentation
  Accessible without login Image file Global.png Icon Methods and attributes documentation
  Accessible without login Image file I.png Icon Methods and attributes documentation
  Accessible without login Image file Index.png Icon Methods and attributes documentation
  Accessible without login Image file Interface.png Icon Methods and attributes documentation
  Accessible without login Image file Interface_logo.png Icon Methods and attributes documentation
  Accessible without login Image file L.png Icon Methods and attributes documentation
  Accessible without login Image file Lminus.png Icon Methods and attributes documentation
  Accessible without login Image file Lplus.png Icon Methods and attributes documentation
  Accessible without login Image file Method.png Icon Methods and attributes documentation
  Accessible without login Image file next_button.png Icon Methods and attributes documentation
  Accessible without login Image file next_button_disabled.png Icon Methods and attributes documentation
  Accessible without login Image file package.png Icon Methods and attributes documentation
  Accessible without login Image file package_folder.png Icon Methods and attributes documentation
  Accessible without login Image file Page.png Icon Methods and attributes documentation
  Accessible without login Image file Page_logo.png Icon Methods and attributes documentation
  Accessible without login Image file previous_button.png Icon Methods and attributes documentation
  Accessible without login Image file previous_button_disabled.png Icon Methods and attributes documentation
  Accessible without login Image file PrivateClass.png Icon Methods and attributes documentation
  Accessible without login Image file PrivateClass_logo.png Icon Methods and attributes documentation
  Accessible without login Image file PrivateMethod.png Icon Methods and attributes documentation
  Accessible without login Image file PrivateVariable.png Icon Methods and attributes documentation
  Accessible without login Image file private_class_logo.png Icon Methods and attributes documentation
  Accessible without login Image file StaticMethod.png Icon Methods and attributes documentation
  Accessible without login Image file StaticVariable.png Icon Methods and attributes documentation
  Accessible without login Image file T.png Icon Methods and attributes documentation
  Accessible without login Image file Tminus.png Icon Methods and attributes documentation
  Accessible without login Image file Tplus.png Icon Methods and attributes documentation
  Accessible without login Image file tutorial.png Icon Methods and attributes documentation
  Accessible without login Image file tutorial_folder.png Icon Methods and attributes documentation
  Accessible without login Image file up_button.png Icon Methods and attributes documentation
  Accessible without login Image file Variable.png Icon Methods and attributes documentation

  Files folder image Files  /  doc  /  MyDefensiveAttack  
File Role Description
  Accessible without login HTML file MyDefensiveAttack.html Doc. Methods and attributes documentation

  Files folder image Files  /  doc  /  __examplesource  
File Role Description
  Accessible without login HTML file exsource___www_myp...9c25ce994c9ea4.html Doc. Methods and attributes documentation
  Accessible without login HTML file exsource___www_myp...1d379f503319ff.html Doc. Methods and attributes documentation
  Accessible without login HTML file exsource___www_myp...59ffc3e1a098ba.html Doc. Methods and attributes documentation
  Accessible without login HTML file exsource___www_myp...bbf71fdee03013.html Doc. Methods and attributes documentation
  Accessible without login HTML file exsource___www_myp...18b91269c029db.html Doc. Methods and attributes documentation

  Files folder image Files  /  doc  /  __filesource  
File Role Description
  Accessible without login HTML file fsource_DefensiveA...siveAttack.php.html Doc. Methods and attributes documentation
  Accessible without login HTML file fsource_DefensiveA...siveAttack.php.html Doc. Methods and attributes documentation
  Accessible without login HTML file fsource_DefensiveA..._example_1.php.html Doc. Methods and attributes documentation
  Accessible without login HTML file fsource_DefensiveA..._example_2.php.html Doc. Methods and attributes documentation
  Accessible without login HTML file fsource_DefensiveA..._example_3.php.html Doc. Methods and attributes documentation
  Accessible without login HTML file fsource_DefensiveA..._example_4.php.html Doc. Methods and attributes documentation
  Accessible without login HTML file fsource_DefensiveA..._example_5.php.html Doc. Methods and attributes documentation

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,516
This week:0
All time:1,532
This week:182Up
 User Ratings  
 
 All time
Utility:63%StarStarStarStar
Consistency:69%StarStarStarStar
Documentation:63%StarStarStarStar
Examples:69%StarStarStarStar
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2387