Skip to content
GravityKit
Buy
Sign in
0 items
  • Plugins

    GravityKit All Access

    Our complete Kit of essential tools for extending and enhancing Gravity Forms—everything you need to build powerful web apps and workflows.

    Learn more
    • GravityView

      GravityView

      Bestseller

      Display Gravity Forms entries on the front-end of your site and build powerful web applications.

    • GravityImport

      GravityImport

      Trending

      Import entries from CSV files into Gravity Forms to transfer data, create new forms, or update existing entries.

    • GravityEdit

      GravityEdit

      Quickly edit Gravity Forms entries inline to save time, reduce clicks, and streamline your workflow.

    • GravityCharts

      GravityCharts

      Trending

      Turn Gravity Forms entries into interactive charts and graphs.

    • GravityActions

      GravityActions

      Update multiple Gravity Forms entries at once, send bulk emails, and streamline your workflow.

    • GravityCalendar

      GravityCalendar

      Turn Gravity Forms entries into dynamic calendars to showcase events, schedules, appointments, and more.

    • GravityExport

      GravityExport

      Export Gravity Forms entries to Excel, CSV, or PDF and share them instantly with secure download links.

    • GravityMath

      GravityMath

      Perform advanced calculations on Gravity Forms entries to display totals, averages, or build custom calculators.

    • GravityRevisions

      GravityRevisions

      Track, compare, and restore changes made to Gravity Forms forms and entries with a full version history.

    • GravityMigrate

      GravityMigrate

      Migrate all Gravity Forms data, including forms, entries, Views, feeds, uploads, and more.

    • GravityBoard

      GravityBoard

      Manage projects with collaborative project management. Coordinate with your team and streamline your workflows.

    • GravitySearch

      GravitySearch

      Search Gravity Forms entries across every form from one screen.

  • Ideal For

    • Nonprofits
    • Web Agencies
    • Education
    • Developers
    • Small Businesses
    • Startups
    Explore All Use Cases

    Case studies

    • West Fork Schools
    • Princeton University
    • BrightLeaf Giving
    • Jacksonville Port Authority
    • National Severe Storms Lab
    • Leadpal
    • Mediebruket
    • Dragonfly
    View All Case Studies
  • Resources

    • Blog
    • Case studies
    • GravityKit vs competitors
    • Live Demos
    • Documentation
    • Developer docs
    • GravityKit Academy
    • GravityKit Live!

    Ultimate guides

    • How to use Gravity Forms
    • Editing Gravity Forms entries
    • Importing Gravity Forms entries
    • Exporting Gravity Forms entries
    • Displaying Gravity Forms entries
    • Gravity Forms conditional logic
    • Gravity Forms calculations
    View More Articles
  • Plugins

    • GravityView

      GravityView

      Bestseller

      Display Gravity Forms entries on the front-end of your site and build powerful web applications.

    • GravityImport

      GravityImport

      Trending

      Import entries from CSV files into Gravity Forms to transfer data, create new forms, or update existing entries.

    • GravityEdit

      GravityEdit

      Quickly edit Gravity Forms entries inline to save time, reduce clicks, and streamline your workflow.

    • GravityCharts

      GravityCharts

      Trending

      Turn Gravity Forms entries into interactive charts and graphs.

    • GravityActions

      GravityActions

      Update multiple Gravity Forms entries at once, send bulk emails, and streamline your workflow.

    • GravityCalendar

      GravityCalendar

      Turn Gravity Forms entries into dynamic calendars to showcase events, schedules, appointments, and more.

    • GravityExport

      GravityExport

      Export Gravity Forms entries to Excel, CSV, or PDF and share them instantly with secure download links.

    • GravityMath

      GravityMath

      Perform advanced calculations on Gravity Forms entries to display totals, averages, or build custom calculators.

    • GravityRevisions

      GravityRevisions

      Track, compare, and restore changes made to Gravity Forms forms and entries with a full version history.

    • GravityMigrate

      GravityMigrate

      Migrate all Gravity Forms data, including forms, entries, Views, feeds, uploads, and more.

    • GravityBoard

      GravityBoard

      Manage projects with collaborative project management. Coordinate with your team and streamline your workflows.

    • GravitySearch

      GravitySearch

      Search Gravity Forms entries across every form from one screen.

    GravityKit All Access

    Our complete Kit of essential tools for extending and enhancing Gravity Forms—everything you need to build powerful web apps and workflows.

    Learn more
  • Ideal For

    • Nonprofits
    • Web Agencies
    • Education
    • Developers
    • Small Businesses
    • Startups
    Explore All Use Cases

    Case studies

    • West Fork Schools
    • Princeton University
    • BrightLeaf Giving
    • Jacksonville Port Authority
    • National Severe Storms Lab
    • Leadpal
    • Mediebruket
    • Dragonfly
    View All Case Studies

    How to build...

    • Property Management
    • Product Catalog
    • Fundraising Dashboard
    • Real Estate Directory
    • Document Library
    • Academic Journal
    • Volunteer Management
    • Meal Tracker
    View All Guides
  • Resources

    • Blog
    • Case studies
    • GravityKit vs competitors
    • Live Demos
    • Documentation
    • Developer docs
    • GravityKit Academy
    • GravityKit Live!

    ultimate guides

    • How to use Gravity Forms
    • Editing Gravity Forms entries
    • Importing Gravity Forms entries
    • Exporting Gravity Forms entries
    • Displaying Gravity Forms entries
    • Gravity Forms conditional logic
    • Gravity Forms calculations
    View More Articles
  • Support
  • Pricing
0 items

Search

Results appear automatically as you type.
Loading results…

results found matching

    Sign in
    Buy

    Docs

    • Docs Home

    Gravity Forms Add-Ons

    • GravityView
    • GravityActions
    • GravityBoard
    • GravityCalendar
    • GravityCharts
    • GravityEdit
    • GravityExport
    • GravityImport
    • GravityMath
    • GravityMigrate
    • GravityRevisions
    • GravitySearch
    • GF Widget for Elementor
    • GF Dynamic Lookup
    • GF Entry Tags
    • GF Event Field
    • GravityExport Lite
    • GF Zero Spam

    GravityView

    • Getting Started
    • View Setup
    • FAQ
    • Pre-Sale
    • Advanced
    • Common Problems
    • Customizing Your Views
    • Edit Entry
    • Entry Approval
    • Filter and Sort Results
    • Gravity Forms
    • Merge Tags
    • Roles and Capabilities
    • Search
    • Shortcodes
    • View Settings
    • WordPress Posts

    General Help

    • Account, Invoices, and Billing
    • License Related
    • Plugins and Settings
    • Contact
    • Docs Home
    • Gravity Forms Add-Ons

      • GravityView
      • GravityActions
      • GravityBoard
      • GravityCalendar
      • GravityCharts
      • GravityEdit
      • GravityExport
      • GravityImport
      • GravityMath
      • GravityMigrate
      • GravityRevisions
      • GravitySearch
      • GF Widget for Elementor
      • GF Dynamic Lookup
      • GF Entry Tags
      • GF Event Field
      • GravityExport Lite
      • GF Zero Spam
    • GravityView

      • Getting Started
      • View Setup
      • FAQ
      • Pre-Sale
      • Advanced
      • Common Problems
      • Customizing Your Views
      • Edit Entry
      • Entry Approval
      • Filter and Sort Results
      • Gravity Forms
      • Merge Tags
      • Roles and Capabilities
      • Search
      • Shortcodes
      • View Settings
      • WordPress Posts
    • General Help

      • Account, Invoices, and Billing
      • License Related
      • Plugins and Settings
    • Contact

    Gravity Forms Zero Spam

    • How Gravity Forms Zero Spam works (and how to test it)
    • Troubleshooting Gravity Forms Zero Spam
    • Using AI Spam Review with Gravity Forms Zero Spam
    • Using Email Rejection Rules with Gravity Forms Zero Spam
    • Using Shield silentCAPTCHA with Gravity Forms Zero Spam
    • Getting started with Gravity Forms Zero Spam
    • Home
    • Docs
    • Gravity Forms Zero Spam
    • Using Email Rejection Rules with Gravity Forms Zero Spam

    Using Email Rejection Rules with Gravity Forms Zero Spam

    Estimated reading: 4 minutes

    Updated on August 11, 2026

    Zero Spam can reject submissions based on the email address someone enters, either across your whole site or on one specific field. This is useful when spam keeps arriving from a particular domain, or when a business enquiry form should not accept free consumer addresses.

    How the pieces fit together #

    There are three settings involved, in two different places, and they stack in this order:

    SettingWhere it livesWhat it controls
    Enable Email Rejection RulesForms > Settings > Zero SpamThe whole feature. While it is off, no rules run anywhere
    RulesForms > Settings > Zero SpamThe rules themselves. These apply to every email field on every form
    Enable rejection rulesForm editor, on an email field, under AdvancedWhat that one field does differently

    Note: the per-field setting is not an on switch, and leaving it off does not exempt the field. Every email field uses your global rules unless you turn that setting on and choose to replace them.

    Turn the feature on #

    In your WordPress dashboard, go to Forms > Settings > Zero Spam, find the Email Rejection Rules section, and switch on Enable Email Rejection Rules. Do this before adding rules anywhere, including on individual fields.

    Email Rejection Rules section in Zero Spam settings with the Enable toggle switched off

    Add a rule #

    Once the feature is enabled, a Rules builder appears. Each rule has three parts: the Type, which decides how the value is matched, the Value itself, and the Action to take when an address matches. Fill those in, click Add Rule, then save the settings.

    Rules table showing a Domain rule for spamdomain.com with a Block badge, above the rule builder

    Saved rules are listed above the builder, where you can edit, disable, or remove each one. Disabling keeps a rule in the list but stops it running, which is useful while you work out whether a rule is too broad. Rules are checked in order and the first match wins, so when two rules would both catch an address, the one higher in the list decides what happens.

    Rule types

    TypeWhat to enterWhat it matches
    Domainspamdomain.comAny address at that exact domain. Do not include the @
    Emailbob@spamdomain.comThat one address, and nothing else
    Wildcard*@spamdomain.comAnything fitting the pattern, where * stands for any characters
    Regexspamdomain\.(com|net)Anything matching the regular expression

    Picking the wrong type is the most common reason a rule appears to do nothing. Email is an exact comparison, so a pattern such as *@spamdomain.com entered against it will never match. Use Wildcard for * patterns and Regex for expressions.

    Note: Domain matches the domain exactly. A rule for spamdomain.com covers bob@spamdomain.com but not bob@mail.spamdomain.com. To catch subdomains as well, add a second rule of type Wildcard with the value *@*.spamdomain.com.

    Actions

    ActionWhat happens
    BlockThe submission is stopped and a validation message appears on the form
    Flag as SpamThe submission completes normally and the entry goes to Spam
    Log OnlyThe submission completes normally and the entry is left alone

    Only Block is visible to the person filling in the form. With the other two the form behaves as though nothing happened, which is worth knowing when you are testing a rule and expecting to see an error.

    Both Flag as Spam and Log Only add a note to the entry naming the rule that matched, the address, and the field it came from. Open the entry and read its notes to confirm a rule is working.

    Note: the Block action requires Gravity Forms 2.9.15 or newer. On older versions the Action dropdown offers only Flag as Spam and Log Only.

    Rules for a single field #

    To change what one field does, open the form in the form editor, select the email field, and expand Advanced in the field settings.

    Per-field rejection settings showing Rule Mode with inherit and replace options

    Switching on Enable rejection rules gives you two modes:

    • Inherit global rules + add field-specific rules runs your global rules first, then the extra rules you add here
    • Use only field-specific rules (ignore global) runs only the rules you add here and skips the global list for this field

    The second mode is the only way to make a field accept an address that the rest of your site rejects, such as an internal form that should still allow a domain you block everywhere else.

    Change the message people see #

    When a rule blocks a submission, the form shows the Default Validation Message from the Zero Spam settings.

    Default Validation Message setting showing the wording shown to visitors when a submission is blocked

    To word it differently for one field, fill in the Validation Message box in that field’s settings. Leave it blank to use the default.

    Add several rules at once #

    To build a list quickly, click + Import Rules, paste your values one per line or separated by commas, choose the action to apply to all of them, and click Import. Each entry is detected as a domain or an email address automatically.

    Import Rules panel expanded with three values pasted in and the action set to Block
    Still stuck? How can we help?

    How can we help?

    "*" indicates required fields

    This field is for validation purposes and should be left unchanged.
    Replies will go to this email.
    How can we help?*
    My pre-sale question is related to...*
    My WordPress skills are....*
    My Gravity Forms skills are...*
    You will be shown articles from our documentation.
    Vous pouvez nous écrire dans votre langue maternelle si c’est plus facile pour vous—nous nous occuperons de la traduction!
    Puedes escribirnos en tu idioma nativo si te resulta más fácil; ¡nosotros nos encargamos de la traducción!
    Sie können uns in Ihrer Muttersprache schreiben, wenn das für Sie einfacher ist – wir kümmern uns um die Übersetzung!
    U kunt ons in uw moedertaal schrijven als dat gemakkelijker voor u is — wij zorgen voor de vertaling!
    Du kan skrive til oss på ditt morsmål hvis det er enklere for deg — vi tar oss av oversettelsen!
    Du kan skriva till oss på ditt modersmål om det är lättare för dig — vi tar hand om översättningen!
    Você pode nos escrever em seu idioma nativo se for mais fácil para você — nós cuidaremos da tradução!
    Puoi scriverci nella tua lingua madre se ti è più facile — penseremo noi alla traduzione!
    Please provide as much detail as you're able; this helps us provide you with faster support.
    Drop files here or
    Accepted file types: jpg, jpeg, gif, png, tiff, pdf, bmp, zip, json, csv, xls, xlsx, Max. file size: 256 MB.
      Stay informed?

      Was this page helpful?

      Table Of Contents
      • How the pieces fit together
      • Turn the feature on
      • Add a rule
      • Rules for a single field
      • Change the message people see
      • Add several rules at once
      GravityKit
      • How to Build It
      • GravityKit vs competitors
      • Pricing
      • Products
      • Our Team
      • Our Values
      • Work With Us
      • Coupons
      Support
      • Support
      • Contact
      • Documentation
      • Scope of Support
      • Brand Guidelines
      • Privacy Policy
      • Terms of Service (“Terms”)
      I am a...
      • Nonprofit
      • Web agency
      • Small business owner
      • Web developer
      • Educational institution
      • WordPress freelancer
      • Startup founder
      • One-person agency
      Get notified of updates.

      We’re constantly improving GravityKit. Fill out your email below and we’ll notify you anytime major updates drop.

      • Facebook
      • Twitter
      • Mastodon
      GravityKit is a Gravity Forms Certified Developer.

      Copyright © 2026, Katz Web Services, Inc.

      GravityKit and GravityView are registered trademarks of Katz Web Services, Inc.

      Floaty, GravityKit's astronaut mascot, relaxing on a beach lounger

      Gravity Summer Sale ☀️

      50% off our entire toolkit • From 25% off for the rest of the community

      Shop the Sale