Initial assessment without passwords Quote before intervention One accountable specialist from start to finish

Errors & Diagnosis

Cloudflare Error 521 in WordPress: Origin Down, Firewall or Bad IP

Direct answer: Cloudflare Error 521 in WordPress: Origin Down, Firewall or Bad IP must be resolved as an operational decision, not a generic tool list.…

Cloudflare 521 means the edge reached the configured origin IP but the origin refused the connection. Treat it as an origin reachability problem first: wrong IP, web server stopped, port not listening or a firewall rejecting Cloudflare are more likely than a WordPress plugin.

Confirm the origin IP Cloudflare is using

Compare A/AAAA records with the server that actually hosts the site. Old IPv6 or a forgotten migration target can send Cloudflare to a healthy but wrong machine.

Test the origin outside Cloudflare

Resolve the origin directly or use a controlled hosts-file test. Check ports 80/443 and the expected virtual host; do not disable the proxy globally just to experiment.

Check whether the web server is listening

Verify nginx/Apache and PHP upstream health. A stopped listener or failed bind produces a very different remediation path from an application error.

Inspect firewall decisions

Review host firewall, security group and provider WAF logs for Cloudflare source ranges. Allowlisting should follow current provider ranges, not one observed IP.

Separate 521 from WordPress

If TCP is refused before HTTP, changing themes or plugins cannot fix it. Only investigate WordPress after the origin accepts the connection and returns an HTTP response.

Validate recovery through the edge

Test several URLs through Cloudflare and direct origin, then confirm cache/proxy state and monitoring. A homepage 200 alone does not prove admin, API or assets are healthy.

Use the 502 proxy/PHP guide once the origin answers HTTP, and compare DNS with the old-server DNS diagnosis.

BEFORE YOU SEND THE REQUEST

Frequently asked questions.

Do you ask for passwords in the form?+

No. The public form never requests access. Secure credentials are requested only after the scope and quote are approved.

Who reviews the incident?+

The request goes to Jordi Ensenyat, founder of Code Barcelona and a WordPress specialist with more than 15 years of experience.

Is anything changed before the quote?+

No. Visible symptoms and scope are reviewed first. Intervention begins after approval and with a rollback path prepared.

Do you work internationally?+

Yes. WP Repair handles WordPress and WooCommerce incidents in English and Spanish through a remote service.

Assess my incident↗