Form Guard (Disable on Non-Production)
Disable form for website on staging
by Roy De La Torre · github.com/roy-dela-torre/disable-form · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/roy-dela-torre/disable-form/archive/refs/heads/main.zipDeclares an update source (https://github.com/roy-dela-torre/disable-form), so updates arrive through the plugin's own updater.
From the readme
Disables forms sitewide on non-production domains with IP geolocation support and selective Contact Form 7 blocking.
Form Guard is a WordPress plugin designed to protect your development and staging environments from accidental form submissions. It automatically detects when your site is running on a non-production domain and disables forms sitewide, preventing test data from being submitted or processed.
Selective Form Disabling: Choose which Contact Form 7 forms to disable, or disable all forms globally
Smart Geolocation: Displays different messages based on visitor's location (Philippines vs. others) using multiple detection methods
Multiple IP Detection: Supports Cloudflare, server headers, and optional API-based geolocation with 24-hour caching
Visual Indicators: Shows a dismissible banner message and visual form indicators
Dual Protection: Both client-side (JavaScript) and server-side (PHP) form blocking
Contact Form 7 Integration: Advanced CF7 integration with selective form disabling and server-side blocking
Search Form Exception: Automatically preserves search functionality while disabling other forms
Dynamic Form Detection: Handles dynamically loaded forms using