Dynadot Black Friday and Cyber Monday 2026: save more on domains. See our sales.

IP Addresses

SpaceshipSpaceship
Spacemail by SpaceshipSpacemail by Spaceship
Namecheap AuctionsNamecheap Auctions
Watch

Barrucadu

Established Member
Impact
64
Is it possible to get the IP of someone who clicks a submit button? Because ATM on my image hosting site I have no way of telling who uploaded what. If so whats the php?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
PHP:
function getip()
	{
		global $_SERVER;
		if ($_SERVER['HTTP_X_FORWARD_FOR']) //stupid proxies! :P
		{
			return $_SERVER['HTTP_X_FORWARD_FOR']; //get there real ip hehe
		} 
		else 
		{
			return $_SERVER['REMOTE_ADDR']; //they dont use a proxy :)
		}
	}

use that function...

and:
PHP:
$ip = getip();
 
0
Close
Well ,

I thing there is a way through javascript or when your validating the user's input

$User_IP = $_SERVER['REMOTE_ADDR'];

save the $User_IP in a database your ever you want and when you want to see
it you could make a script or edit personlally
 
0
Close
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back