Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions