Re: [PHP] Swear filter ideas
- From: tedd@xxxxxxxxxxxx (tedd)
- Date: Tue, 3 Jul 2007 13:50:51 -0400
At 1:32 AM -0500 7/3/07, Richard Lynch wrote:
On Wed, June 27, 2007 5:18 pm, Richard Davey wrote:How do you go about implementing a swear / bad-word filter in PHP?
Reasons for needing one aside, I'm just wondering if you favour a
regexp, a substr_count, or what? Do you like to *** out the bad words,
or just error back to the user? (I guess that is application
specific).
There are always ways to circumvent them, but I'm still curious to
know how you prefer to handle it.
Don't.
Trying to solve a social problem with software hacks never works out
well.
To further drive the point home, it might be interesting to write a routine that would take the inferred "bad" words and replace them with real bad words. Then when someone enters a perfectly non-swearing sentence, it's transformed into something really filthy.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
.
- References:
- Re: [PHP] Swear filter ideas
- From: "Richard Lynch"
- Re: [PHP] Swear filter ideas
- Prev by Date: Re: [PHP] Removing Spaces from Array Values
- Next by Date: Re: [PHP] how PHP is batter?
- Previous by thread: Re: [PHP] Swear filter ideas
- Next by thread: Re: [PHP] Bit-size of machine
- Index(es):
Relevant Pages
|