The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join

Envwise Environment-Based Control

Envwise Environment-Based Control banner
Last updated
2 days ago
Version
1.1.0
Tested up to
WP 7.1.4

About this plugin

A WordPress plugin that automatically controls search engine indexing based on your environment (production vs development/staging).

This plugin prevents accidental search engine indexing of development, staging, or testing WordPress sites by automatically enforcing the “Discourage search engines from indexing this site” option when not in a production environment.

Features

  • Automatic Environment Detection: Detects production vs non-production environments using two methods:
    • WP_ENV constant (takes priority if defined)
    • URL comparison between current site and configured production URL
  • Automatic Privacy Control: Forces search engine discouragement on non-production environments
  • Production Override: Allows search engine indexing only on production sites
  • Admin Dashboard: Provides a clear status overview and configuration interface
  • Production URL Setting: Define your production site URL for environment comparison
  • Plugin Deactivation Behavior: Choose whether to restore search engine indexing when the plugin is deactivated
  • Status Dashboard: Real-time environment status display under Tools menu
  • Visual Indicators: Clear production/non-production status with color-coded indicators
  • Settings Integration: Direct settings link from the plugins page
  • Admin Notices: Warning notifications when running on non-production environments

Safety Features

  • Database Protection: Automatically updates the blog_public option based on environment
  • Activation/Deactivation Hooks: Properly handles plugin lifecycle events
  • Backward Compatibility: Maintains compatibility with existing installations

Use Cases

  • Development Sites: Prevent accidental indexing of localhost or development domains
  • Staging Sites: Protect staging environments from search engines
  • Multi-Environment Workflows: Seamlessly deploy across different environments
  • Client Sites: Ensure development work doesn’t appear in search results

Configuration

Setting Up Production URL

  1. Navigate to Tools > Envwise
  2. Enter your production site URL (e.g., https://www.yoursite.com/)
  3. Configure plugin deactivation behavior
  4. Save settings

Environment Detection Methods

Method 1: WP_ENV Constant (Recommended)
Add this to your wp-config.php:

// For production
define('WP_ENV', 'production');

// For development/staging
define('WP_ENV', 'development');
// or
define('WP_ENV', 'staging');

Method 2: URL Comparison
If WP_ENV is not defined, the plugin compares:
* Current site URL: home_url(‘/’)
* Configured production URL (from plugin settings)

Analytics

Live from WordPress.org, refreshed daily. Last refresh Nov 14, 2026.

  • Passes every health check below.
3/3

Health checks

Everything a careful site owner looks at before installing.

  • Actively maintained Last release 2 days ago
  • Tested with current WordPress Tested up to 7.1.4
  • Support questions answered Nothing open in the last two months
  • Well rated No ratings yet
Active installs
Fewer than 10 WordPress.org rounds this down
This week
65 downloads 0 the week before
Last 30 days
65 downloads 0 a day, typically
All time
57 downloads On WordPress.org since 2026
Downloads per day Every update counts as a download on WordPress.org, so release weeks spike.
Latest day
22
Typical day
33
Peak
43 Nov 12
View as table
DayDownloads
Nov 1322
Nov 1243
Where it stands Rank among the plugins WPFolks tracks every day.

Not ranked yet. Install, download and rating ranks cover the 5,000 most popular plugins on WordPress.org, and Trending needs about 100 downloads on a typical day.

Active installs over time Recorded by WPFolks every day since Nov 14, 2026.

Gathering install data

WordPress.org only publishes today's install count, so WPFolks records it every day. The chart appears here once there is enough history to draw.

Reviews

From folks on WPFolks

No reviews from folks yet. Used it? Be the first to say how it went.

Log in to leave a review

Proudly supported by