Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 UnversityStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started