Re: Determining IP address

From: Date: Thu, 06 Sep 2001 07:31:11 +0000
Subject: Re: Determining IP address
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66161@lists.php.net to get a copy of this message
Just to bring that point up again.... for those in the know, IP addresses are easy to spoof, in other words make it appear that it comes from elsewhere. If your system contains sensitive or confidential data then I would suggest you do both - username/password and IP Do you have an intranet/secure internal network? Tom > > I was wondering if there is a way in PHP that you can determine the IP > > address? I am wondering because I am developing a simple web based > > program (in php) for use in a hospital setting and I want to do some > > checks to make sure that the program is not being run from a computer > > outside of the hospital. Instead of having user names and > > passwords, I thought it would be eaiser if I just checked the IP > > address, especially since this is not a program that really has to > > be secure, but I would like to prevent just anyone from using it. Is > > this possible with php? > > You can use $REMOTE_ADDR to find the IP address of the machine > accessing the script. > > It could be spoofed, though. > > Jason > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#66161) next »