Creating A Swear Filter in ASP.NET
By: Joel Martinez on Tuesday, January 31, 2006
Reader Level: 
Lets face it, the web is a jungle. If your site allows end users to supply content (such as message boards, or blog comments), you must assume that anything and everything will be supplied. This is obviously an issue depending on what/who your site is about. One of the most common solutions for this issue is to filter out swear words. Unfortunately, most of the implementations I've seen (and sadly, done) have mostly been hacked together at the last minute and certainly not reusable.
This article shows you how to create an ASP.NET control that is as simple to use as placing a tag around your content. Regardless of how your content was generated, whether dynamic, or a collection of other controls, anything. The filter is easily maintained in the web.config file so maintenance is a breeze.
Code is presented in C#.
Purchase this item
You can purchase this piece of content separately for
$3.00
Want more?
Community MX members get unlimited access to daily articles,
tutorials, extensions and support. The most comprehensive
resource for Macromedia designers and developers today.
Take a tour of what we offer, and discover the benefits
of subscribing.
Already a member?
Simply log in using the form in the top right area of the site.



