Re: Bad Words Filter
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 61871
interpreted = N
texte = This should work for you. I just wrote it out, so the logic works even if there's a typo in the code. While this would only let you catch "standalone" words, tinkering with the "eqBANNEDdata" would let you catch compound words and phrases. Sorry, I can't find my BadWords.db (besides, they probably wouldn't like me posting it in here!)[math show=F]WORDSFOUND=0[/math][ListWords words=[inputText]&delimiters= ][search db=BadWords.db&eqBANNEDdata=[WORD]][founditems][math show=F]WORDSFOUND=1[/math][/founditems][/search][/ListWords][SHOWIF [WORDSFOUND]>0]Insert your message here [/SHOWIF]-----------------------------------------Steve DannawayIT Director & General CounselJM Associates, Inc.www.fishfactory.com> Date: Thu, 28 Apr 2005 14:50:51 -0500> Subject: Bad Words Filter> From: Clint Davis
> Message-ID: > Content-type: text/plain;> charset="US-ASCII"> Content-transfer-encoding: 7bit>> Has anyone created a bad words filter that they'd be willing to share?>> I need to check the content of a form field after the form is > submitted. If> the field contains any of the words in the bad words DB, the entire > form> will be rejected.-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- Re: Bad Words Filter ( Steve Dannaway 2005)
- Bad Words Filter ( Clint Davis 2005)
|
This should work for you. I just wrote it out, so the logic works even if there's a typo in the code. While this would only let you catch "standalone" words, tinkering with the "eqBANNEDdata" would let you catch compound words and phrases. Sorry, I can't find my BadWords.db (besides, they probably wouldn't like me posting it in here!)[math show=F]WORDSFOUND=0[/math][ListWords words=[inputText]&delimiters= ][search db=BadWords.db&eqBANNEDdata=[WORD]][founditems][math show=F]WORDSFOUND=1[/math][/founditems][/search][/ListWords][SHOWIF [WORDSFOUND]>0]Insert your message here [/SHOWIF]-----------------------------------------Steve DannawayIT Director & General CounselJM Associates, Inc.www.fishfactory.com> Date: Thu, 28 Apr 2005 14:50:51 -0500> Subject: Bad Words Filter> From: Clint Davis > Message-ID: > Content-type: text/plain;> charset="US-ASCII"> Content-transfer-encoding: 7bit>> Has anyone created a bad words filter that they'd be willing to share?>> I need to check the content of a form field after the form is > submitted. If> the field contains any of the words in the bad words DB, the entire > form> will be rejected.-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Steve Dannaway
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Applescript Hack (1996)
Search String (2003)
How do I find where my IP address is located (2000)
Summary layout (1997)
Search wbrk word break param (1998)
[Sum] function? (1997)
WebCommerce: Folder organization ? (1997)
WebCat2b15MacPlugin - showing [math] (1997)
ShoppingCart clearing code (2004)
Two prices in shoppingcart? (1997)
[url] (1997)
$Replace with [founditems] (1997)
Claris HomePage messes up the code (1997)
NT Setup (1998)
RE: OK, here goes... (1997)
Quick Question (1997)
domain in cookie (2006)
[subtotal] and others (1997)
Web Catalog 2 demo (1997)
RE: [taxRate] [TaxTotal] ? (1997)