I wrote a script to log a visitors IP address in a file. I need to make it so it will not add two different IP Addresses that are from my host's monitoring software which hits my server once a minute. Can somebody tell me how to do this?
Here is the script that pertains the the IP address capture/storing:
Any help would be greatly appreciated.
$IPAddress = $_SERVER["REMOTE_ADDR"];
// Add a record for visitor
@mysql_query("insert into visitors(IPAddress) values('$IPAddress')" );
// i need it to do something like
@mysql_query("insert into visitors(IPAddress) values('$IPAddress') UNLESS IT IS FROM IP 255.0.0.1 OR 255.0.0.2" );