You need to determine the IP address of the machines you want to restrict access to, and then use an if statement on the log in, for example
if ($_SERVER['REMOTE_ADDR']==
{
then do log in code
}
a fast way to detemine your machine IP addresses is go to those machines and go to the website:
http://whatismyipa
Main Topics
Browse All Topics





by: geomouchetPosted on 2009-06-27 at 06:59:10ID: 24727727
You could create a php script to register a machine. It would use setcookie() to save a cookie. Then when that user returns you use $_COOKIES to retrieve the cookie data. This is how those "remember me" checkboxes work on various web sites. Note, though that if the user changes browsers or deletes his cookies he will have to re-register that machine.