Eric Teubert over at WPEngineer has shared some Javascipt code that can be used to limit the amount of text that users can place within the comments field or any text field for that matter. Could be used to combat those comment spammers that like to post a bazillion words but the negative side is that lengthy, legitimate commentators will need to be cut short.
Limiting The Amount Of Text In Comments
Category: WordPress
4
4 responses to “Limiting The Amount Of Text In Comments”
-
-
Those long comments with all the links are posted by spam scripts and won’t be affected by any javascript in the comment form.
-
@Jon – I second that!!
-
JavaScript won’t have any effect on spam. Bots generally don’t process JavaScript. That’s why captcha’s which make use of JavaScript are very effective at blocking bots.
Yeah, not a fan of doing this. I’d rather use a captcha or just stick with Akismet, to combat spam.
Akismet does a dang good job, in my opinion.