A Simple .NET Profanity Filter(james.newtonking.com)

submitted by JamesNKJamesNK(3015) 2 years, 7 months ago

A website I am working on right now accepts public comments, and one of the requirements is to do a basic check for dirty language. Surprisingly for such a common problem I wasn’t able to find any code on the net that did what I wanted and so I’ve ended up writing my own. The Censor class is pretty simple: you give it a list of words you want to censor, either simple text or with wildcards, and the censor will star out any matches it finds.

2 comments |category: |Views: 652

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by lysplysp(5) 2 years, 7 months ago 0

This kick is ****! ;)

Reply

information Login or create an account to comment on this story