Web Hosting Talk







View Full Version : WordPress: How to screen for profanity?


deko
05-04-2006, 08:11 PM
What is the best way to screen anonymous blog posts for profanity?

I'm using WorpPress 2.02 on a LAMP server.

I'm thinking either an SQL query or (more practically) using PHP and regex. Any suggestions?

The idea is to prevent mindless, offensive rants on my blog. For example, when a "badword" is detected in the post, it gets rejected, and the user gets a message telling him that we don't want that **** here. <== notice how webhostingtalk automatically detects this.

Is there a PHP module for this? Can I modify the badword list?

Thanks in advance.

grabmail
05-04-2006, 09:08 PM
What is the best way to screen anonymous blog posts for profanity?

I'm using WorpPress 2.02 on a LAMP server.

I'm thinking either an SQL query or (more practically) using PHP and regex. Any suggestions?

The idea is to prevent mindless, offensive rants on my blog. For example, when a "badword" is detected in the post, it gets rejected, and the user gets a message telling him that we don't want that **** here. <== notice how webhostingtalk automatically detects this.

Is there a PHP module for this? Can I modify the badword list?

Thanks in advance.

i think somebody has created this. not sure about the name though.

SoftWareRevue
05-04-2006, 10:27 PM
This one should do what you want. http://elliottback.com/wp/archives/2004/12/01/polite-ifier-wp-plugin