Wordfence’s Diagnostics runs a loopback test that posts to your own site. If you see “wp_remote_post() test back to this server failed”, WordPress couldn’t reach admin-ajax.php (or was blocked on the way). Common causes include Cloudflare/WAF rules, host security modules (mod_security), maintenance/coming-soon gates, Basic Auth, bad SSL, IPv6 hiccups, or a plugin conflict. Use the checklist below to identify the blocker and restore scans.
Wordfence > Tools > Diagnostics shows “wp_remote_post() test back to this server failed.” Scans won’t start. I’m behind Cloudflare and also use a coming-soon plugin. How do I fix this?
Wordfence asks WordPress to POST back to your site (a “loopback request”) to confirm that background tasks and scans can run. If wp_remote_post() can’t reach /wp-admin/admin-ajax.php or is blocked with 403/503/timeout, Diagnostics reports this failure and scans may stall.
CDNs can block your site’s own requests. Do the following:
/wp-admin/admin-ajax.php or /wp-json/. If you use “Under Attack Mode” or “Bot Fight Mode,” exclude those paths.Why this works: Correct IP detection prevents self-requests from looking like “unknown bots,” and the bypass rule lets loopbacks through Cloudflare untouched.
Hosts often enable rules that block admin-ajax.php or POSTs that look automated.
/wp-admin/admin-ajax.php from your server’s own IP (loopback). Mention the Wordfence loopback test specifically..htaccess that could send admin-ajax.php into a redirect loop.Some environments fail loopbacks over IPv6 or with strict SSL validation.
Anything that blocks anonymous visitors will also block loopbacks.
admin-ajax.php through:<Files "admin-ajax.php"> Require all granted </Files>
(Use cautiously; prefer disabling Basic Auth during testing.)
Some setups behave better when scans start locally.
Do I need to open my site to the world? No, only make sure your own site can POST to admin-ajax.php. That’s what the bypass/allow rules do.
Will bypassing AJAX reduce security? Not if you scope it precisely to /wp-admin/admin-ajax.php and keep WordPress/plugins updated. The rule simply prevents your CDN/WAF from blocking legitimate loopbacks.
Do scans work with maintenance mode? Typically no. Loopbacks must be able to reach AJAX without a login wall.
Return to Wordfence → Tools → Diagnostics. Under “Connecting back to this site,” the test should now succeed. Run a full scan to verify.
WP Assistant is a free tool created by Atiba Software, a WordPress design and development company located in Nashville, TN. If you need more personalized WordPress assistance let us know, and we’ll get back to you ASAP!