PDA

View Full Version : Abuse words validation using javascript



NovemberRain
September 8th, 2005, 02:31 AM
I've a simple message board system to upload users' comments. But somebody populated the database with abuse words. Is there any javascript available to validate the malpractices like this.

blindlizard
September 8th, 2005, 03:34 AM
I would not do it with JavaScript. I recomend validating on the server side, just before you save it to the database.

mlk
September 8th, 2005, 06:44 AM
I would not do it with JavaScript. I recomend validating on the server side, just before you save it to the database.

Yeah, or people just look at your code and do whatever they want with it.

I'd recommend using php + regular expressions