Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-01-31, 12:33 PM   #1
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
($_SERVER['REMOTE_ADDR']);

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|
__________________
Click here to purchase a bridge I'm selling.
Useless is offline   Reply With Quote
Old 2005-01-31, 12:42 PM   #2
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
don't do the gethostbyaddr
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote
Old 2005-01-31, 12:57 PM   #3
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
Damn...it works! I love simple solutions.

Thanks Chris. You da man.
__________________
Click here to purchase a bridge I'm selling.
Useless is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:46 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc