RE: [PHP] IP Address Filtering
| From: | Jim Moseby | Date: | Wed, 29 Mar 2006 20:26:48 +0000 |
| Subject: | RE: [PHP] IP Address Filtering | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-232868@lists.php.net to get a copy of this message | ||
> I¹ve run into a slight problem. We maintain a Guestbook for
> our company¹s
> website. Lately we have been getting a lot of ³Spam² entries into the
> Guestbook.
>
> I added a snippet into the PHP Script & a field in the mySQL
> database to
> record the IP Address of posters. However, for the SPAM
> posts, it records
> ³Null² instead of an IP Address. I¹m using $REMOTE_ADDR to
> records the IP.
> It records IP Addresses of any genuine poster... But NULL for the spam
> poster.
>
> What else can I do to block the SPAM entry? Is there some other Unique
> Identifier that I can record of the Spam poster and then block him?
How about block any poster that does not report a valid $REMOTE_ADDR?
JM