PDA

View Full Version : ($_SERVER['REMOTE_ADDR']);


Useless
2005-01-31, 01:33 PM
So here's the thing...I'm in the midst of beefing up my top secret script so that I can 'filter' out more of the cheaters. I just modified it so that I can finally see [and potentially ban] the submitter's IP. I put this in my script to grab the IP: $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); Now here's the thing, some of the IPs are simple numeric IP addresses (82.79.32.22), but many are the full alpha-numeric string, such as alb-69-200-18-197.nycap.rr.com. Why is that? Is that normal?

Spanks in advance. |clown|

cd34
2005-01-31, 01:42 PM
don't do the gethostbyaddr :)

Useless
2005-01-31, 01:57 PM
Damn...it works! I love simple solutions.

Thanks Chris. You da man. |thumb