fullyloaded Posted January 5, 2007 Share Posted January 5, 2007 hii 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] Quote Link to comment Share on other sites More sharing options...
Psycho Posted January 5, 2007 Share Posted January 5, 2007 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. Quote Link to comment Share on other sites More sharing options...
fullyloaded Posted January 5, 2007 Author Share Posted January 5, 2007 hi ok thanks for your help ;D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.