...

View Full Version : getting rid of spam



simjay
11-27-2007, 10:18 PM
Hi guys.

I have made my own forum and i am getting a lot of spam. Please take a look at this bit of code and see if you can help...


<?
if comment_comment ***** "</a>";// this bit should look at the comment and make sure links arent used, so i need the ***** code.
{
echo "please do not use links";
}
else
{
bla bla // add to database
}
?>

Pennimus
11-27-2007, 11:45 PM
strpos() (http://uk3.php.net/strpos)

simjay
11-28-2007, 11:24 AM
if comment_comment == strpos() '</a>';


??

simjay
11-28-2007, 12:20 PM
Or is there away to stop links being added to the sql data base???

Pennimus
11-28-2007, 02:28 PM
I would follow the link I actually posted so you can see how to use the strpos() function :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum