|
Posted by Dasdan on 10/13/88 11:29
> Is there a easy way to add a bad word list to a form.
> I tell you why my guestbook is away being spamed
> so I was thinking-if I add a bad word list,I could filter
> word like poker ,online games, ect.
>
> I use :
> if (!strstr($_SERVER['HTTP_REFERER'], 'mysite.com')) { exit ("Invalid
> referrer");
>
> but it is still being spamed by online casino sites
simple example of a bad word filter::
.....
ob_start();
//do your page processing here
//$this->pageController->handleRequest($request);
$response = ob_get_contents();
ob_end_clean();
//do some filtering
//TODO : get wordlist from DB, process wordlist in a while loop
$response = str_replace('casino', 'oops2', &$response);
print $response;
--
Kevin Wood AKA Dasdan
http://www.dasdan.be
[Back to original message]
|