Work out if an IP address is in an ISP's IP range

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
Joan Garnet
Moderator
Moderator
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars
Contact:

Post by Joan Garnet » Sat Feb 01, 2003 2:27 pm

You can use

Code: Select all

$ip = getenv(REMOTE_ADDR);

and make whatever you want with that IP

Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Post by Oleg Butuzov » Mon Feb 03, 2003 1:52 am

you can separete values in the IP an comere that in the circle...

Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Post by Oleg Butuzov » Tue Feb 04, 2003 2:23 am

exemple of code? no! who about algoritm?

123.123.133.133 - this is IP

separete values whith explode or split function

analize values in the loop.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest