Question: PHP Language I need help. When I get the user's IP address I need to verify if they are or not under a certain domain.

PHP Language

I need help. When I get the user's IP address I need to verify if they are or not under a certain domain. Below is the original question and my code.

Original Question: Display a message You are (NOT) from Kean domain. under the IP address, if the customer (NOT) login from Kean domain (10.*.*.*) or (131.125.*.*)

ie

PHP Language I need help. When I get the user's IP address

Here is the code I have so far it just receives a persons IP

$ip = $_SERVER['REMOTE_ADDR'];

echo " Your IP Address is: $ip ";

$IPv4= explode(",",$ip);

Your IP: 100.100.100.100 You are NOT from Kean Unversity. Your IP: 100.100.100.100 You are NOT from Kean Unversity

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!