Gravity Forms Blocklist – Blacklist and Block IP

1644756389 Gravity Forms Blocklist Blacklist And Block Ip
  • Description
  • FAQ
  • Screenshots
  • DEMO
  • Updates & Support

Validate a field’s value against the WordPress Disallowed Comment Keys validation.

This plugin is part of Gravity Perks, a suite of 37+ essential Gravity Forms addons with support you can count on.

What does it do?

This plugin allows you to validate a field’s value against the WordPress Disallowed Comment Keys validation. This option can be set for a single field, multiple fields, all fields within a form. If the field fails validation it will display an error to the end user stating that their field contains disallowed words.

Features

  • Validate fields against Disallowed Comment Keys.
    Prevent form submissions that include blocked words, phrases, or IPs.
  • Validate against a single field, multiple fields, or all fields.
    Flexible validation to match your form’s needs.
  • Integrates with the built-in WordPress Disallowed Comment Keys.
    Use the same blocklist for both comments and forms.
  • Reject submissions silently with a honeypot.
    Reject entries without notifying the user that their entry has been blocked.
  • Automatic updates.
    Get updates and the latest features right in your dashboard.
  • Awesome support.
    We’re here to help! And we mean it.

Documentation

  1. How do I enable this functionality?
    1. Single Field
    2. Whole Form
  2. Feature Details
    1. Single Field
    2. Whole Form
    3. WordPress Disallowed Comment Keys
      1. Automate Blocklist Management
    4. Honeypot
  3. Known Limitations
  4. FAQs
    1. How can I change the text of the validation error message?
  5. Hooks

How do I enable this functionality?

Since there are two options for this perk, field and form, we will do them in separate categories.

Single Field

To activate blocklist validation for a single field, navigate to the Perks tab and check Validate Against Disallowed Comment Keys.

Whole Form

To validate against every field on the form, navigate to the “Restrictions” section within the form settings area. Check Validate Against the WordPress Disallowed Comment Keys.

1644756386 340 Gravity Forms Blocklist Blacklist And Block Ip

Feature Details

Single Field

If a single field has the Blocklist setting enabled then that field will take the end-users submitted value and check it against that of the Disallowed Comment Keys words.

Whole Form

If the form wide Blocklist setting is enabled then it loops through all fields within the form when an end-user submits the form. It then checks the fields to see if they are supported by this perk. After grabbing a list of all supported fields it then validates the fields against the WordPress Disallowed Comment Keys words.

WordPress Disallowed Comment Keys

To specify blocked words, navigate to Settings > Discussion. Scroll down to “Disallowed Comment Keys” and enter any words you wish to prevent from being submitted on this form, one per line.

You can specify IP addresses in the Comment Keys and GF Blocklist will prevent submissions from that IP.

Comment-Blocklist-Wp-Setting
Automate Blocklist Management

Save yourself time and beef up your blocklist by supplementing the list of keywords with this repository. You can add the list to your site by pasting it into the Disallowed Comment Keys, or you can use any of the supported plugins that automates adding new keywords.

Honeypot

Use the gpb_enable_honeypot hook to silently reject submissions while making it appear successful. This discourages spammers from attempting to find loopholes in your blocklist to exploit.

Known Limitations

Due to the nature of WordPress’ Disallowed Comment Keys feature, it will match words inside of other words. So let’s say you wanted to ban the word Race it would also ban any words with race in it, like Racer.

This Perk was previously known as GF Comment Blacklist. We chose to rename it to match name changes in WordPress.

FAQs

How can I change the text of the validation error message?

You can change the text of the validation error by using the gpb_validation_message hook.

Hooks

Gravity Forms has hundreds of hooks. Check out our Gravity Forms Hook Reference for the most thorough guide to Gravity Forms’ many actions and filters.

or
Shopping Cart
  • Your cart is empty.
Scroll to Top