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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.