trying to filter out various words from user entered text

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58727
interpreted = N
texte = WebCat 4.51 - but upgrading to 6.x soon running on Linux Hello, I have a site where users can enter text messages. I need to filter out various possible strings of data if they exist in the user message. Typically these would be URLs. I will know the domain names that needs to be removed, but there will often be extra data after the domain name that I will not know, but need to also remove. This is why I didn't go the convertwords.db route. What I have tried, but doesn't seem to work properly is: (test code) --- begin --- [showif [message]^bad] [ListWords Words=[message]&Delimiters= .] [index] - [word]
[showif [word]^bad] [text]badword=[word] [/showif] [/ListWords] [text]msg_start=[Middle StartAfter=-start-&EndBefore=[badword]][message][/Middle][/text] [text]msg_end=[Middle StartAfter=[badword]&EndBefore=-end-][message][/Middle][/text] [/showif] --- end --- The biggest problem is the above doesn't scale well. I would love to be able to have the 'bad words' in a db that can be checked instead of having the badwords in the code. Any suggestions? Thanks ------------------------------------------------------------- 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:

    
  1. Re: trying to filter out various words from user entered text ( Stuart Tremain 2004)
  2. trying to filter out various words from user entered text ( eLists 2004)
WebCat 4.51 - but upgrading to 6.x soon running on Linux Hello, I have a site where users can enter text messages. I need to filter out various possible strings of data if they exist in the user message. Typically these would be URLs. I will know the domain names that needs to be removed, but there will often be extra data after the domain name that I will not know, but need to also remove. This is why I didn't go the convertwords.db route. What I have tried, but doesn't seem to work properly is: (test code) --- begin --- [showif [message]^bad] [ListWords Words=[message]&Delimiters= .] [index] - [word]
[showif [word]^bad] [text]badword=[word] [/showif] [/ListWords] [text]msg_start=[Middle StartAfter=-start-&EndBefore=[badword]][message][/Middle][/text] [text]msg_end=[Middle StartAfter=[badword]&EndBefore=-end-][message][/Middle][/text] [/showif] --- end --- The biggest problem is the above doesn't scale well. I would love to be able to have the 'bad words' in a db that can be checked instead of having the badwords in the code. Any suggestions? Thanks ------------------------------------------------------------- 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/ eLists

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:

searching illegal HTML (2002) Relative URL quirk (1999) Sorting (2005) [WebDNA] Friday's.. WIP thread (2009) Web Catalog and Net Cloak (1998) Multi-processor Mac info ... (1997) printing twice? and fix (1997) Cart questions (1997) Date in IF ELSE Comparison (2004) Re:E-mailer application times out (1998) [WebDNA] v7 Stress Test and Strange Behaviour (2012) [math] are you there? (1999) Slightly [OT] - Finding host names (1999) WebCatalog for Mac 2.0.1 Released (1997) info (1997) Error: Too many nested [xxx] contexts (1997) Head's up to SMSI ... (2003) A *secret* new webdna tag !!! (1999) WebStar Questions ... (2000) Re:quit command on NT (1997)