A clone of your site is a full copy of your live site, including its settings, API keys, and scheduled tasks. Unless you change those things, a clone can send real emails, charge real customers, and update real outside services. This guide explains why that happens and what you can do about it.
Do You Need a Fully Isolated Clone?
Almost never. For everyday testing, such as plugin updates, theme changes, or new features, a few basic steps are enough:
- Create the clone as a sandbox site.
- Stop the clone from sending email.
- Switch payment gateways on the clone to test mode.
- Delete the clone when you’re done.
Going further than that takes much more work, and each extra step catches less. Trying to block every possible connection rarely pays off unless your test has a specific risk.
If an AI tool or anyone else tells you that you need a fully isolated clone, ask what problem it solves for your test. A real reason names something concrete, for example: “This test runs subscription renewals, which would charge real customers.” General advice like “it reduces risk” or “it’s best practice” isn’t a reason to take on all the work in this guide.
The rest of this guide covers cases where an isolated clone makes sense.
What Pressable Can and Can’t Do
Pressable can’t create a fully isolated clone for you, and we can’t guarantee or verify that a clone is isolated. These facts apply to every Pressable site:
- Outgoing connections from Pressable sites are open by default. There is no server-level setting that blocks outgoing email or outgoing requests before WordPress loads.
- We can’t confirm when a site’s background tasks have finished, and we can’t pause them for you.
- Building custom test environments isn’t something we offer within our Scope of Support.
System-Level Sandboxing Isn’t Available
Pressable is a managed host. To keep every site stable and secure, all sites run in identical containers, and site users have limited access to the server. Tools that build isolation at the operating system level, such as unshare and other Linux namespace or container tools, are blocked on Pressable sites. For example, running unshare over SSH stops with a “Bad system call” error. This is expected, and it can’t be changed for individual sites.
Changes made to a site’s container outside WordPress, such as programs you install yourself, also don’t carry over when the site is cloned, receives a Data Transfer, or moves to another server.
Because of this, isolation for testing has to happen inside WordPress: through plugin settings, plugins that block email, and custom code such as a must-use plugin.
Limiting what a clone can reach is the site owner’s responsibility. The steps below can lower the risk, but no combination of them is guaranteed to catch everything. You make these changes at your own risk, and you should test the results yourself.
Why a Fully Isolated Clone Is So Hard
A WordPress site can reach the outside world in many ways, and every plugin, theme, and service you add can bring new ones. Because every site’s combination of add-ons is different, there is no single switch or checklist that covers every site. Most leaks from a clone fall into these five areas:
- Email. WordPress, plugins, and themes send mail through WordPress, through an SMTP plugin, or through a mail service’s API. A clone can send order confirmations, password resets, or newsletters to real people.
- Outgoing requests. Plugins send data to outside services: webhooks, CRM and inventory syncs, marketing tools, product feeds, analytics, and license checks. A clone can push test data into the systems your live site uses.
- Background tasks. WP-Cron and Action Scheduler run scheduled jobs such as subscription renewals, sync jobs, and queued emails. On a clone, these jobs keep running.
- Incoming requests. Payment gateways and other services may send callbacks (webhooks) to a site. If a clone registers itself with a service, that service may start sending it real events.
- Stored credentials. A clone holds the same API keys, tokens, and account connections as the live site. Outside services can’t tell the clone apart from your live site, so any of the four areas above can act on your real accounts.
Stored credentials are the root of most leaks. A clone that has no working credentials for a service can’t do anything in that service.
Start With a Sandbox Site
When you create a test clone, choose a sandbox site. The type of clone you choose sets the clone’s WordPress environment type:
- Sandbox clone: environment type
development, with Basic Authentication turned on automatically. - Staging clone: environment type
staging. - Live clone: environment type
production. Never use a live clone for testing. It tells your plugins that it is your real site.
The environment type only helps with plugins that check it. Many plugins ignore it, so don’t rely on it to switch anything off.
What Basic Authentication Does and Doesn’t Cover
Basic Authentication asks for a username and password before most pages load. It uses the clone’s WordPress usernames and passwords, and visitors who are already logged in to WordPress pass through. It keeps visitors, search engines, and most outside services from loading the clone’s pages.
Basic Authentication never asks for a password on these paths:
- WP-Cron (
wp-cron.php) - WP-CLI
admin-ajax.phpxmlrpc.php- REST API requests under
wp-json/jetpack,wp-json/wp/v2, andwp-json/wp/v3
Because of this, Basic Authentication does not stop the clone from sending email, making outgoing requests, or running background tasks. Those start on the server itself or on the paths listed above.
Whether Basic Authentication refuses a service’s incoming callbacks depends on the URL that service uses. If a callback arrives on one of the paths above, it gets through. Check with the service’s vendor before you count on Basic Authentication to block it.
If an outside testing tool needs to reach your sandbox clone, check whether the tool supports Basic Authentication credentials. Tools that don’t support them won’t be able to load the site; you can convert it from Sandbox to Staging for the window during which the testing tool runs (which removes the Basic Authentication protections).
Common Leak Points and How to Reduce Them
The plugin or service vendor is the best source for how to stop their tool safely on a test site. We can’t list every plugin, and settings change between versions. For each plugin or service on your site that sends email, takes payments, or connects to an outside account, check its documentation or contact its developer and ask: “How do I stop this from contacting real customers or accounts on a test clone?”
- Turn off or disconnect the clone’s SMTP or mail service plugin (if it uses one), and remove its API key or password from the clone.
- Install a plugin that stops WordPress from sending email, such as Stop Emails.
- Test it: trigger an email you can watch for, such as a password reset to your own address, and confirm nothing arrives.
Stop Emails only blocks mail sent through WordPress’s own mail function. Mail sent another way, or by a plugin that replaces WordPress’s mailer, can still go out. That’s why step 1 matters.
Payments
Switch every payment gateway on the clone to its test or sandbox mode, using test credentials from the payment provider. Follow each gateway’s own documentation for this.
Reconnecting a payment plugin or completing its setup on a clone can have unexpected results. Check your gateway’s documentation, or ask the gateway’s support team, before you reconnect anything on a clone.
WooCommerce Subscriptions
WooCommerce Subscriptions has a built-in Staging Mode. When the site’s URL differs from the URL where Subscriptions was first activated, it should turn off automatic renewal payments and subscription emails. Read Woo’s guide, How Subscriptions Handles Staging Sites and Migrations, before you test.
Two things to check on the clone:
- Staging Mode only works if Subscriptions was first activated on your live site. Go to WooCommerce > Status and confirm Subscriptions Mode shows Staging.
- Don’t select Enable Automatic Payments in the notice on the clone.
Webhooks, Syncs, and Connected Services
- In WooCommerce, go to WooCommerce > Settings > Advanced > Webhooks and set each webhook to Paused or Disabled.
- Stop inventory, CRM, marketing, product feed, analytics, and similar integrations on the clone.
Before you change any connection settings on the clone, ask the vendor how to stop the clone safely.
Background Tasks
WP-Cron and Action Scheduler keep running on a clone. Plugins that use them can renew subscriptions, sync data, or send queued email on schedule. Check each plugin’s documentation for how to pause its scheduled jobs. Woo’s Subscriptions guide above includes steps for Action Scheduler.
Server-side cron jobs you set up in MyPressable are not copied to clones. Only the WordPress-level scheduled tasks described above come along with the clone.
General Advice
Remove or Replace Credentials on the Clone
This is the most effective single step. A clone that has no working credentials for a service can’t send anything to it. On the clone, remove live API keys, tokens, and passwords, or replace them with the provider’s test credentials.
Where your keys are stored decides what a clone gets:
- Plugin settings and
wp-config.php: copied to every clone. You must remove or replace them on the clone. - MyPressable environment variables (Security > Environment Variables): not copied to clones. A clone starts without them. If you store your live keys here, a new clone has no live keys unless you add them. See Save Secrets as Encrypted Environment Variables for how to use them.
Block Outgoing Requests (Advanced)
WordPress has a setting, WP_HTTP_BLOCK_EXTERNAL, that blocks outgoing requests made through WordPress’s own request functions. It’s added to wp-config.php. See the official WordPress documentation for how it works.
Never add WP_HTTP_BLOCK_EXTERNAL to a live site. It will break features that depend on outside services, including updates and Jetpack. Remove it from the clone before you clone that clone or run a Data Transfer from it. A Data Transfer that copies all files replaces the destination’s wp-config.php, which would carry the setting to your live site.
This setting also blocks Jetpack, which is installed on every Pressable site. To keep Jetpack connected, allow WordPress.com with a second setting, WP_ACCESSIBLE_HOSTS. Add both lines to the clone’s wp-config.php, above the line that reads /* That's all, stop editing! */:
define( 'WP_HTTP_BLOCK_EXTERNAL', true );
define( 'WP_ACCESSIBLE_HOSTS', '*.wordpress.com,*.wp.com' );
This setting has limits:
- It doesn’t stop plugins that make requests without using WordPress’s request functions, such as some payment libraries.
- It doesn’t stop email sent over SMTP.
- It doesn’t stop incoming requests to the clone.
- Plugin and theme updates, license checks, and embeds will also fail unless you add their domains to
WP_ACCESSIBLE_HOSTS.
Check the Results Yourself
Don’t assume a step worked. After making changes, watch the places a leak would show up: your email inbox, your payment provider’s dashboard, and the dashboards of your connected services. If you see activity from the clone, stop and find its source before you continue.
Performance Tests on a Clone Aren’t Exact
A clone with email, payments, and integrations turned off doesn’t behave like your live site. Results from it can be faster or slower than your live site, so don’t treat them as an exact measure of live performance.
Delete the Clone When You’re Done
A clone contains a full copy of your site’s data, including customer details. Delete it when testing is finished.
Get Help From a Developer
If your site uses many integrations, or you aren’t comfortable making these changes, a developer can help. See Pressable development services.