Troubleshooting a connection
Fixes for the common reasons a site won’t connect or stops responding.
Updated Nov 11, 2026
The key is refused for this site
The key is tied to the address you entered in WP Foreman. Check the site’s address under Settings › General in WordPress matches (a www. difference is fine). If not, fix the address in the site’s Site settings in WP Foreman, then get a new key under Reconnect this site on the same page.
The key has expired or was already used
Keys work once and expire after 24 hours. Open the site’s Site settings in WP Foreman and click Get a new connection key under Reconnect this site.
The site moved to a new host or domain
Refreshes and backups fail after a move because the connection was made with the old copy of the site. Reconnect it from Site settings › Reconnect this site; change the Address there first if the domain changed. See Reconnect.
The site says 401 or 403
- A security plugin, country blocker or firewall may be blocking WP Foreman. See Let WP Foreman through.
- If the message names a bot check (“prove you’re human”), see A bot check or “Security Verification” page.
- The server clock may be wrong. Requests are only accepted within 5 minutes of the real time. Ask your host to enable time sync (NTP).
Let WP Foreman through a firewall or “members only” plugin
WP Foreman talks to the website from one address, 134.209.78.176, with a user agent starting WPForeman/. Everything it sends is signed for that one website, and the WP Foreman plugin turns away anything else. So letting that address through doesn’t open the website to anyone else.
Signs you need this: Refresh failed with “HTTP 403”, or with a login page in the message (“Log In ‹ …”), while the website itself works fine.
The WP Admin button works differently: it opens the website in your browser, from your address, not WP Foreman’s. With WP Foreman plugin 0.9.9 or newer it signs you in before country blockers and “members only” plugins check visitors, the same way ManageWP’s and WP Engine’s sign-in links do, so you land in wp-admin even if your own country is blocked on the public site. Older plugin versions could show the blocker’s page instead; update the plugin from the Updates page.
IP2Location Country Blocker
Blocks whole countries, and WP Foreman’s server may be in one of them.
- In wp-admin, open IP2Location Country Blocker, then the Frontend tab.
- Find the IP whitelist (Whitelist IP Addresses) and add
134.209.78.176. - Save, then click Refresh on the website in WP Foreman.
Restricted Site Access
Sends every visitor who isn’t signed in to the login page, WP Foreman included.
- In wp-admin, go to Settings › Reading.
- Under Site Visibility, find Unrestricted IP addresses and add
134.209.78.176. - Save changes, then click Refresh in WP Foreman.
Other firewalls and members-only plugins
- Wordfence: Wordfence › Firewall › All Firewall Options, add the address under Allowlisted IP addresses that bypass all rules.
- Cloudflare: Security › WAF › Tools, add an IP Access Rule that allows
134.209.78.176. - Force Login, My Private Site and similar: look for an IP or URL allowlist and add the address, or the path
/wp-json/wpforeman/v1/command. - A host firewall (WP Engine, Kinsta, SiteGround and others): ask the host to allow
134.209.78.176. On WP Engine, see Websites on WP Engine.
A bot check or “Security Verification” page
Some hosts put a “prove you’re human” check in front of websites, and some security plugins and firewalls block requests they don’t recognize. It can’t be passed by a server, so WP Foreman’s requests stop there and never reach WordPress. Signs: a backup, refresh or update fails with a message that names the bot check (for example 20i’s StackProtect stopped WP Foreman), while the website opens fine in your browser.
These checks often kick in only after a burst of requests, such as a website’s first backup, and ease off later. With WP Foreman plugin 0.10.0 or newer, backups send far fewer requests, so this rarely happens; update the plugin first. A backup that still runs into one pauses and carries on from where it got to, twice, 15 minutes apart. If the check is still there, the backup fails and the website needs WP Foreman’s address, 134.209.78.176, allowlisted:
- 20i (StackProtect): there’s no switch for it in My20i or StackCP. Open a support chat with 20i and ask them to allowlist
134.209.78.176for StackProtect on the website. It takes them a few minutes. - SiteGround: ask SiteGround support to allowlist
134.209.78.176for their bot protection. - Kinsta (bot protection): if WP Foreman says Kinsta’s bot protection blocked it, the site’s bot protection is set to Block automations or higher. In MyKinsta, open the site’s Bot protection settings and do one of these: turn on Allow typical WordPress automations, which lets WP Foreman’s backups, updates and other commands through; or under Exceptions, add WP Foreman’s two user agents (listed in WP Foreman’s bot), which also lets uptime checks through; or set the level back to Block malicious traffic (Kinsta’s default). An exception for the IP
134.209.78.176works for commands too, but uptime checks come from Cloudflare’s network, so only the user-agent exception covers them. If your role can’t change these, ask the account owner or Kinsta support. WP Foreman has applied to Cloudflare’s verified bots, which Kinsta lets through at every level; see WP Foreman’s bot. - Hosts using Imunify360 (many cPanel hosts): ask the host to add
134.209.78.176to the Imunify360 allowlist. - Cloudflare: Security › WAF › Tools, add an IP Access Rule that allows
134.209.78.176. If Bot Fight Mode is on, it can still challenge the address; a WAF custom rule that skips it for that IP works on paid plans. - Patchstack (a security plugin and firewall, often on Kinsta and other managed hosts): the error names Patchstack and its block code. In app.patchstack.com, open the website and add
134.209.78.176to the firewall’s IP allowlist. Or ask Patchstack support to exclude the rule with that code for/wp-json/wpforeman/v1/command. Your host can’t see Patchstack’s blocks, so it’s not something they can fix. - “REST API for signed-in users only” (Patchstack’s Restrict REST API, also in xCloud’s Site Security; Disable WP REST API and similar plugins): the error says the REST API “cannot be accessed by unauthorized users”. The WP Foreman plugin 0.12.4 and later gets through these settings on its own, while every other REST route stays restricted. On an older plugin, update WP Foreman from Plugins in wp-admin (WP Foreman can’t update it for you while it’s blocked), or turn the setting off.
- Wordfence: under Wordfence › Firewall › All Firewall Options, add
134.209.78.176to Allowlisted IP addresses that bypass all rules. - Sucuri: in the Sucuri firewall dashboard, add
134.209.78.176to the allowlisted IPs under Access Control.
Then click Refresh on the website in WP Foreman, and run the backup again. Allowlisting the address is safe: every request WP Foreman sends is signed for that one website, and the plugin refuses anything else.
If your host asks what WP Foreman received: open the failed backup on the website’s Backups page and click Copy details for your host. It has the time, the address WP Foreman called, the response status, the full response headers (including any Cloudflare ray ID) and the start of the page that came back, with cookies left out. Paste it into your ticket with the host.
The site says 404
The WordPress REST API is disabled or blocked. WP Foreman tries both /wp-json/ and ?rest_route=. If both fail, check for a plugin that disables the REST API.
Timeouts or 5xx errors
The site was down or overloaded when WP Foreman called. Refreshes and backups retry a few times automatically. If it keeps happening, check the host’s error log.
Still stuck? Click Support in the menu and send a request about that website, with the error shown in WP Foreman. See Get help from the WP Foreman team.
Updates fail on WP Engine
The website connects fine but updates and installs fail with “Could not copy file”. WP Engine needs to add a rule for WP Foreman once per account. See Websites on WP Engine.
Thanks. If something was missing, tell us what.