Opens in a new tab

WordPress wp-cron.php 403 Forbidden: Find the Blocking Layer

WordPress wp-cron.php returns HTTP 403? Find the WAF, host, proxy or security rule behind it, then verify scheduled jobs before changing protections.

Illustration: WordPress wp-cron.php 403 Forbidden: Find the Blocking Layer

WordPress reports that a request to wp-cron.php returned HTTP 403 Forbidden. Scheduled posts, WooCommerce jobs, backups, or email tasks may appear late. But a 403 response alone does not prove that scheduled work has stopped: some managed hosts deliberately block HTTP access to wp-cron.php and execute due events using a separate server-side scheduler.

Fast answer: establish whether the actual WordPress loopback request was denied, identify whether the denial came from a CDN/WAF, HTTP-auth gateway, web server, security plugin or host policy, and independently confirm that an approved replacement scheduler is—or is not—running real events. Fix the responsible layer without switching off site-wide security. This article investigates the HTTP 403 boundary; for a late named event without HTTP-denial evidence, start with Site Health’s scheduled-event guide.

First, separate a blocked HTTP request from a broken scheduler

Observed fact What it establishes What it does not establish
Site Health: loopback returned HTTP 403 The particular WordPress self-request received an HTTP denial That all scheduled callbacks are late, or that the CDN was necessarily responsible
Browser GET to /wp-cron.php returns 403 That browser request was denied That the internal request or a server-side WP-CLI cron cannot work; request method and route may differ
WP-Cron disabled via DISABLE_WP_CRON Normal page-load-triggered cron spawning is disabled That the HTTP 403 was caused by this constant, or that no replacement cron is working
Server cron entry exists A task was configured in a scheduler That it executed at the expected time or ran the correct site’s callbacks
Due hooks and WooCommerce actions advancing Evidence of actual execution when matched to timestamps and outcomes That every task or every WP-Cron HTTP route is healthy
Determine whether this is an actual missed-job incident or an intentional HTTP restriction with a verified alternate execution path.

WordPress normally spawns due cron work using a nonblocking request back to the site’s wp-cron.php. In WordPress 6.9, core moved its normal spawning check to the shutdown action, except for alternative cron mode; the official wp_cron() reference documents the behavior. The Site Health loopback test uses a POST request designed to finish early without executing due callbacks. Its test request and a later real spawn are similar but are not identical to a browser GET or HEAD request.

1. Collect the minimum evidence before changing a firewall rule

From Tools → Site Health → Status, preserve the exact loopback warning, time in UTC, site URL, installed WordPress version and the observed HTTP status. Record which user-visible outcome failed: a scheduled post, queued WooCommerce job, a plugin check or none at all. A generic 403 screenshot without a URL, method, time and actual business symptom is not enough to choose a fix.

Then, with the site’s authorized administrator, check which scheduler model applies:

  1. Default page-load WP-Cron: scheduled events normally depend on traffic and successful self-requests to wp-cron.php.
  2. Managed server cron: the host may set DISABLE_WP_CRON and invoke WordPress through a real crontab, WP-CLI or an approved HTTP route. Ask for recent run time, target, exit status and callback evidence.
  3. Application queue: WooCommerce Action Scheduler may use WP-Cron as a trigger but has its own runner, action states and failure modes. Do not equate the state of the two systems.

If you have authorized WP-CLI access, a bounded inventory of scheduled events can help identify stale entries without explicitly running their callbacks:

wp cron event list --fields=hook,next_run_gmt,next_run_relative,recurrence --format=table

Use the correct WordPress installation and, for multisite, the correct site context. Do not publish event arguments, raw logs or credentials: they can contain private identifiers. Even an inspection command loads WordPress, so execute it only with normal administrator change-control and access permissions.

Do not use wp cron event run --due-now, a casual browser GET, or wp cron test as a zero-impact diagnostic. The first runs actual callbacks; the other methods can initiate work. The official WP-CLI cron test explicitly attempts to spawn cron over HTTP. If an execution test is necessary, schedule it for a safe test environment or a reviewed maintenance window with the owners of the affected jobs.

2. Attribute the 403 to the rejecting layer

Ask the hosting administrator to correlate the failed request’s UTC timestamp, host, path, HTTP method and source across available logs. Do not assume the public web browser and the WordPress server use the same route, IP, HTTP method or security policy. A CDN challenge, a reverse proxy deny rule, a password-protected staging site and a PHP security plugin can all create an access denial; those are different fixes.

Candidate layer Evidence to request Appropriate owner response
CDN, bot filter or WAF Matching rule/event identifier for the exact timestamp, host, path and request source Review a narrowly scoped exception or supported scheduler route only after confirming the denied traffic is the site’s legitimate cron
Reverse proxy or Nginx/Apache Access/error log and the effective location, allow/deny or HTTP method rule Correct the relevant internal route or retain a documented intentional block with working alternate cron
Staging Basic Auth/SSO Authentication challenge or gateway log for the self-request Use the site’s approved authenticated loopback or controlled non-HTTP scheduler; keep staging protected
WordPress security code Plugin or application firewall event with a matching request ID/time Review the specific rule, test on staging and avoid disabling the entire protection stack
Hosting policy Documented host restriction on public wp-cron.php and actual replacement-job logs Retain the restriction if callbacks succeed; repair the replacement if due work is actually late
Matching the real request to an actual deny event is stronger evidence than temporarily disabling a random security layer.

The WordPress Loopbacks handbook specifically names HTTP authentication, server security rules, DNS, SSL and plugin/theme conflicts as causes of failed self-requests. It does not recommend removing every firewall rule from a production site. If a WAF denies a legitimate request, the preferred resolution is a narrow, documented rule review tied to the correct origin, source and path—never blanket removal of managed security.

3. Test whether a replacement scheduler is actually doing the work

An HTTP 403 and a functioning scheduler can coexist. Some hosts intentionally deny web requests to wp-cron.php but use WP-CLI as the execution mechanism. A managed-host loopback FAQ documents precisely that pattern: an Nginx 403 with a separate periodic CLI job. That vendor-specific example is not proof your host’s replacement exists or works.

Ask your host or site administrator for these four concrete facts: the replacement’s configured command or URL (with secrets redacted), the last two actual run times, success/failure output, and one expected WordPress callback or business outcome that advanced. Check that the replacement targets the right webroot, installation, account and multisite blog. For a command-line scheduler, verify that the PHP CLI environment satisfies the actual plugin’s requirements; a job intentionally restricted to a web PHP request may not produce equivalent evidence under CLI.

Guide content map: First, separate a blocked HTTP request from a broken scheduler; 1. Collect the minimum evidence before changing a firewall rule; 2. Attribute the 403 to the rejecting layer; 3. Test whether a replacement scheduler is actually doing the work
Overview of major sections; not a chronological workflow.

For example, ModelGain PHP Security Monitor’s recurring advisory checks intentionally skip the CLI execution context. In that particular workflow, a healthy CLI cron runner can still leave the application’s web-runtime check without fresh evidence. That is a plugin-specific issue, not a reason to declare every CLI-based WP-Cron schedule broken.

If scheduled posts have genuinely been missed, use the scheduled-publication recovery guide. If only a named hook is late, use the Site Health event guide. Neither requires changing firewall configuration before the event evidence is collected.

4. When WooCommerce scheduled actions are late, check a second system

WooCommerce uses Action Scheduler for many background tasks. It can be affected by a blocked WP-Cron trigger, but a repaired HTTP route does not automatically prove that an overdue queue processed its actions or that the callbacks finished successfully. The official WooCommerce scheduled-actions documentation distinguishes scheduled actions from WordPress’s triggering system.

  1. Review the last successful WP-Cron or server-scheduler execution, if recorded.
  2. Inspect actual Pending, Failed and Complete action timestamps under the applicable WooCommerce/Action Scheduler UI.
  3. Identify the oldest overdue hook and its owner rather than re-running an entire queue indiscriminately.
  4. Once the trigger path is corrected, verify a harmless, expected test action completes normally; do not force payment, fulfillment or notification actions as a diagnostic shortcut.

For that separate job, our Action Scheduler versus WP-Cron investigation explains how to distinguish trigger failures from runner failures. If Action Scheduler is active on your site, the free ModelGain Queue Health for Action Scheduler plugin can inspect the backlog, hooks and runner evidence; it is read-only and cannot remove an HTTP 403, modify server rules or guarantee the queue will recover. A WordPress installation without Action Scheduler does not need this plugin to diagnose a WAF denial.

Choose the next check for your situation

This local decision aid does not send requests, inspect your logs, run cron or change any security settings.

Which layer should you investigate next?

Applies when: A local decision checklist. It does not make HTTP requests, access server logs, change WP-Cron, disable security rules, or trigger scheduled events.

Quick answer

First determine whether actual scheduled work has stopped. Attribute the rejected HTTP request to an observed owner. A 403 can coexist with a verified alternate cron runner.

What to do

  1. Note UTC time, loopback status, endpoint, scheduled hook and the most recent expected job outcome. A single 403 does not prove all callbacks failed.

  2. Check if normal HTTP loopback is intended or if a managed server/CLI cron is deliberately used instead. Ask for executed job evidence, not a configuration screenshot.

  3. Correlate request time and path with CDN/WAF, proxy, HTTP-auth, origin/web-server and application security events. Do not bypass security globally.

  4. Check recent callback completion and any separate Action Scheduler runner outcomes after the approved fix or under an intentional CLI-only policy.

What evidence have you actually confirmed?

All paths are listed below. Select a symptom to focus on the most relevant path.

Validate the approved replacement, not HTTP 200

A deliberate HTTP block can be compatible with a functioning system cron. Record its exact target, actual recent runs, callback completion and any plugin-specific web-context limits. Document the expected Site Health warning.

Restore the missing trigger through the responsible host owner

Identify which layer denied the legitimate self-request and whether the replacement job is missing or failed. Approve a narrow rule/path correction or verified server-side scheduler, then test expected callbacks.

Use the matched edge event to propose a scoped rule change

Review the exact request's WAF/bot event, source and path with your CDN owner. Preserve site-wide security and verify the resulting allowed request is legitimate before accepting a scoped exception.

Fix the actual origin or authentication policy

Ask the host to inspect the effective Nginx/Apache location, authentication challenge or security plugin rule. Verify a permitted internal route or intentional CLI-only policy; do not turn off all protection.

Investigate Action Scheduler independently

Check overdue and failed action timestamps, queue runner state and hook ownership. An Action Scheduler diagnostic plugin can help where Action Scheduler is active, but it does not fix an unrelated firewall.

Collect one more execution fact before changing anything

Check whether an actual scheduled post, WooCommerce action or named event ran after the warning. Browser GET and Site Health POST are not identical to the normal cron request. Identify the scheduler model and denied layer first.

5. Verify recovery using observed results, not just HTTP 200

The acceptance test depends on the architecture you confirmed. For default HTTP-triggered WP-Cron, the host should verify that the legitimate loopback is permitted through the intended controls and that an expected due callback actually completes. A returned HTTP 200 by itself may not prove the callback executed. For a deliberately blocked HTTP route with valid CLI cron, the HTTP 403 may remain expected; instead verify recent and repeatable scheduled callback executions and the absence of unresolved overdue work.

After the change Disposition
403 cleared; scheduled events still past due Not closed — inspect event owner, callback errors, locks and queue runner separately
403 remains; verified server scheduler and due callbacks complete Intentional web restriction may be acceptable — document host policy and recognize Site Health may still warn
403 remains; no alternate scheduler or successful callbacks Trigger still broken — host must supply an approved route or replacement
HTTP loopback works; WooCommerce actions remain pending Separate queue issue — investigate Action Scheduler’s runner and per-hook failures
Only one special monitor lacks fresh data; other events work Application-specific failure — inspect execution context, consent and freshness rules
The verified outcome is the intended scheduled work, not the elimination of one diagnostic warning.

Copyable hosting support request

Subject: WordPress wp-cron.php HTTP 403 — please identify denying layer and scheduler path

Our WordPress installation at [approved domain] reported an HTTP 403 for a loopback request to /wp-cron.php at [UTC time]. Site Health shows [exact warning], and the observed scheduled-work outcome is [specific job/time or “not yet verified”]. Please identify which layer returned 403 (CDN/WAF rule, reverse proxy, HTTP authentication, web server or application rule). Is the HTTP block an intentional hosting policy? If so, please provide the configured replacement scheduler’s target, last successful runs and evidence that our intended WordPress callbacks completed. If the default loopback is expected to work, please propose a narrowly scoped remedy without disabling site-wide security. We can provide a redacted request identifier, but not credentials or private logs.

Frequently asked questions

Does a 403 on wp-cron.php always mean cron is broken?

No. A hosting provider may block that HTTP route intentionally while executing events through a real scheduler. Confirm actual callback executions and outcomes instead of equating a browser result with an application failure.

Why does Site Health report 403 when the website loads normally?

The loopback uses a different URL, method and potentially a different network path than ordinary HTML pages. Site Health’s POST test may be rejected by a rule that still permits the homepage. Correlate the exact request with gateway and origin logs.

Should I disable Cloudflare, Wordfence or Basic Auth to test?

No blanket disablement is justified by a status code. Ask the rule owner to inspect the matched rule and arrange a scoped test in staging or a reviewed maintenance window. Keep authentication and access policy intact.

Will adding a cron plugin fix 403?

Not necessarily. A plugin that displays or manages scheduled events cannot force a denied HTTP route through a reverse proxy. A separate system scheduler may be appropriate, but it must be configured and verified for this site’s actual jobs.

Does a successful wp cron test prove all queued tasks finished?

No. The official command tests the spawning mechanism and can send an HTTP request; it does not certify every scheduled callback or downstream Action Scheduler job. It should not be treated as a risk-free read-only probe.

Official documentation and related guides

This article is maintained as a practical reference. Check the linked official documentation for version-specific behavior and validate changes in a safe test environment.
More WordPress guides ↗