Jump to content

external ip


fullyloaded

Recommended Posts

hi
i was wondering if there is any easy way to get some ones external ip when there on my site?reason when a member sites up to my site now it will give me there ip but not there external one i want this because some of the people that signup spam other members on my site and when i block the ip witch is a router ip they some how change it here is one string of code if it helps in anyway thanks

[code]$ip = $_SERVER['REMOTE_ADDR'];[/code]
Link to comment
https://forums.phpfreaks.com/topic/33029-external-ip/
Share on other sites

That IS their external IP address - which is the same as their router's IP address if they are behind one. The router gets an external IP address from the ISP and then the router uses NAT to route (hence the name router) traffic between the internet and the user's internal network. If they are able to change their external IP, there is not much you can do about it.

You *could* block all IPs on their network (i.e. 123.123.123.*). but, then you run the risk of blocking legitimate traffic.
Link to comment
https://forums.phpfreaks.com/topic/33029-external-ip/#findComment-153847
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.