Limiting The Amount Of Text In Comments

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.

SHARE THIS:


LIKE THIS

4 Comments

4 responses to “Limiting The Amount Of Text In Comments”

  1. 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.

  2. Those long comments with all the links are posted by spam scripts and won’t be affected by any javascript in the comment form.

  3. 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.


You may also like

Newsletter

Subscribe Via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

[jetpack_subscription_form subscribe_placeholder=”Email Address” show_subscribers_total=”false” button_on_newline=”false” submit_button_text=”Submit” custom_font_size=”20px” custom_border_radius=”0″ custom_border_weight=”1″ custom_border_color=”#d8d8d8″ custom_button_width=”30%” custom_padding=”15″ custom_spacing=”10″ submit_button_classes=”has-20-px-font-size has-d-8-d-8-d-8-border-color” email_field_classes=”has-20-px-font-size has-d-8-d-8-d-8-border-color” show_only_email_and_button=”true”]