You are here: Re: bad word list 4 guestbook « All PHP « IT news, forums, messages
Re: bad word list 4 guestbook

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация