How bout this for just a little better than IP logging.
<?
 if (getenv(HTTP_X_FORWARDED_FOR)){
   $internalip=getenv(HTTP_X_FORWARDED_FOR);
 }
 if (getenv(REMOTE_ADDR)){
  $externalip=getenv(REMOTE_ADDR);
 }
echo $externalip."-".$internalip;
?>


-----Original Message-----
From: Adam Williams [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 11:24 AM
To: Justin French
Cc: php
Subject: Re: [PHP] basic voting


Most sites log by IP but if its the IP of a firewall, it would only be one
vote from everyone behind the firewall.

                        Adam




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to