Description
The Addon Submission Blocker for Gravityforms plugin allows you to block specific email addresses, domains, IP addresses, countries, and custom text content from submitting forms. This helps reduce spam and unwanted submissions with comprehensive logging and reporting.
Features
- Block specific email addresses
- Block all email addresses from specified domains
- Block submissions from specific IP addresses
- Block submissions from specific countries (with geolocation)
- Block specific text content within any form field
- Custom validation messages for blocked submissions
- Quick block from entry list and detail pages
- Comprehensive logging of all blocked attempts
- Statistics dashboard with blocked submission counts
- Export/Import settings functionality
- View blocked counts for each category
Usage
- Install and activate the plugin.
- Go to Forms Settings Submission Blocker.
- Add emails, domains, IPs, countries, or text to block, one per line.
- Customize validation messages as needed.
- Save changes.
- View blocked submission logs at Forms Blocked Log.
- Export or import your settings for backup or migration.
License
This plugin is licensed under the GPLv2 or later. See https://www.gnu.org/licenses/gpl-2.0.html for details.
Support
For support, please open an issue on GitHub: https://github.com/magarishor/addon-submission-blocker-for-gravityforms/issues
Screenshots
Installation
- Upload the plugin to
/wp-content/plugins/addon-submission-blocker-for-gravityformsor install via Plugins in wp-admin. - Activate the plugin.
- Navigate to Forms Settings Submission Blocker to configure.
FAQ
-
Can I block email addresses from specific domains?
-
Yes. Add the domain such as
gmail.comto Blocked Domains. -
What happens when a submission is blocked?
-
The form shows your custom validation message from the plugin settings.
-
Does this plugin work with all forms on my site?
-
Only Gravity Forms.
-
How do I customize validation messages?
-
Go to Forms Settings Submission Blocker and edit the messages per type.
-
Can I block specific words or phrases?
-
Yes. Add them under Blocked Text. If a submission contains any of them, it is blocked.
-
How do I block an entry directly from the entries page?
-
In Forms Entries, use the Block link in the list, or open an entry and use Block Submission. Pick the value and type to block.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Addon Submission Blocker for Gravityforms” is open source software. The following people have contributed to this plugin.
Contributors“Addon Submission Blocker for Gravityforms” has been translated into 1 locale. Thank you to the translators for their contributions.
Translate “Addon Submission Blocker for Gravityforms” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.7.0
- Performance: Optimized validation with O(1) hash lookups instead of O(n) array searches
- Performance: Added object caching for statistics (5-minute cache)
- Performance: Static caching of blocked lists to avoid repeated database queries
- Performance: Failed geolocation lookups now cached for 5 minutes to prevent API hammering
- Security: Added rate limiting to quick block AJAX endpoint (10 blocks per minute)
- Security: Enhanced input validation for IP addresses and email formats
- Security: Added file size and type validation for settings import (max 1MB)
- Security: Improved geolocation API error handling with response code validation
- Security: Added user agent to geolocation API requests
- Security: Sanitization improvements for imported settings data
- New: Automatic log cleanup with configurable retention period (default 90 days)
- New: Option to keep logs forever or set custom retention days (30/90/365)
- New: Scheduled daily cleanup task to maintain database performance
- Improved: Better error messages for rate limiting and validation failures
- Improved: Log retention setting included in export/import
- Note: ip-api.com uses HTTP (HTTPS requires pro plan) but only transmits country codes
1.6.0
- New: Comprehensive logging system for all blocked submissions
- New: Statistics dashboard showing blocked counts by type and time period
- New: Export/Import settings functionality
- New: Display blocked item counts in settings
- New: Country-based blocking with geolocation
- New: Quick block button on entry list and detail pages
- Improved: Better OOP structure with separated concerns
- Improved: Enhanced UI with modern styling
- Fixed: Security improvements with wp_safe_redirect
1.5.0
- New: block specific text content within form fields
- New: direct blocking of IPs, emails, domains, and text from entry list and detail pages
- Improved security and nonce verification for all processing
- Enhanced sanitization and escaping
- Added internationalization for user facing strings
1.4.0
- Modular structure with sanitized inputs
- One per line instructions in settings
- Custom validation messages for all block types
1.3.0
- Block email domains
- Block IP addresses
1.2.0
- Settings page under Gravity Forms
1.1.0
- Basic email blocking
1.0.0
- Initial plugin scaffolding




