Jump to content

Guestbook Spam


tommylennie

Recommended Posts

Hi All,

 

I have created a guestbook application that works fine except that it gets at least one spam entry a day on average. I tried a few things but it doesn't seem to work. Here is the code Im currently using to try and stop these spams. Its set to return an error if any entries contain a link....

 

if(!strpos ($comment, "http")) {

$sql="INSERT INTO $tbl_name(name, comment, date)VALUES('$name', '$comment', '$date')";

$result=mysql_query($sql);

 

Any help is greatly appreciated.

 

Thanks

 

Tommy

Link to comment
https://forums.phpfreaks.com/topic/100329-guestbook-spam/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.