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

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

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: 824
Joined: Sun Jun 02, 2002 3:09 am

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: 824
Joined: Sun Jun 02, 2002 3:09 am

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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests