wp_remote_post() test to noc1.wordfence.com failed! Response was: cURL error 7:
-
I’ve seen several forum posts on the same topic, but in our case, it happened after all sites were transferred to a new dedicated server in order to upgrade centos. I have tried most of the suggestions in https://www.wordfence.com/help/scan/troubleshooting/#if-your-scans-arent-starting under Frequently Asked Questions > Error connecting to the Wordfence scanning servers
In particular,dig noc1.wordfence.com
shows that port 80 and 443 are open. However, simply executing this code results in Failed to connect to noc1.wordfence.com port 80: No route to host<?php // create a new cURL resource $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "https://noc1.wordfence.com/scanptest/hilowebdesign.com/wp-admin/admin-ajax.php?action=wordfence_doScan&isFork=0&cronKey=47e9d1fa6a675b5999999333"); curl_setopt($ch, CURLOPT_HEADER, 0); // grab URL and pass it to the browser curl_exec($ch); if(curl_error($ch)) { echo(curl_error($ch)); } // close cURL resource, and free up system resources curl_close($ch); ?>
I’ve also contacted limestone networks support, and they stated,
It seems issue with remote “noc1.wordfence.com” security setting/policy which is in-accessible from external network and from your given server.
Your given URL working in browser but it seems, remote “server noc1.wordfence.com (69.46.36.28)”security setting/policies restrict connection from external network,unable to ping, restrict curl connection on port 80,443 and give error.
—-C:\Users\user>ping noc1.wordfence.com
Pinging noc1.wordfence.com [69.46.36.28] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out
- The topic ‘wp_remote_post() test to noc1.wordfence.com failed! Response was: cURL error 7:’ is closed to new replies.