PHP Classes

Get First WAN IP: Get the real IP address of a user accessing a site

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
Not enough user ratingsTotal: 319 All time: 7,239 This week: 146Up
Version License PHP version Categories
get-first-wan-ip 1.0.0GNU General Publi...5.4Networking, PHP 5, Traits
Description 

Author

This package can get the real IP address of a user accessing a site.

It provides a trait with a function that checks several HTTP request variables to get the IP address of a user computer that may be behind a proxy.

The function discards IP addresses that may be local to remote user or could be forged.

Picture of doekia
  Performance   Level  
Name: doekia <contact>
Classes: 1 package by
Country: France France
Age: 74
All time rank: 378397 in France France
Week rank: 170 Up9 in France France Up

  Files folder image Files (1)  
File Role Description
Plain text file get_first_wan_ip.php Class get_first_wan_ip

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:319
This week:0
All time:7,239
This week:146Up