• Resolved Nick B.

    (@dok_h)


    Hi, scans wont start on any of my sites. If you can tell me what do I do that would be great. This is the error from diagnostics:

    wp_remote_post() test back to this server failed! Response was: 307 Temporary Redirect
    This additional info may help you diagnose the issue. The response headers we received were:

    HTTP/1.1 307 Temporary Redirect
    Date: Tue, 09 Feb 2021 11:16:41 GMT
    Content-Type: application/octet-stream
    Transfer-Encoding: chunked
    Connection: close
    Set-Cookie: __cfduid=de1bb6355d037dfa99a6be93f1b3cc8ab1612869401; expires=Thu, 11-Mar-21 11:16:41 GMT; path=/; domain=.coloringpagesapp.com; HttpOnly; SameSite=Lax; Secure
    cache-control: private, max-age=0, no-cache
    expires: Mon, 01 Jan 2000 01:01:42 GMT
    Set-Cookie: o2s-chl=c53443e6e07c2f6edb0843d51a459a0f343598cb7a44d930b6095fc519ee2b7c; path=/
    CF-Cache-Status: DYNAMIC
    cf-request-id: 08281b13af0000cddfe0ad1000000001
    Expect-CT: max-age=604800, report-uri=”https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”
    Report-To: {“max_age”:604800,”endpoints”:[{“url”:”https:\/\/a.nel.cloudflare.com\/report?s=%2B0kgrXInerEP4l5g73Bkn3bDjbqjfKdNLJtXHrlXkdI%2B2%2Fy8h%2BX2i5HWnewdC8xbWGDEDGZZtCLucTpWEGv3d3oktxb4J1tPWXy%2BrAbXfg7jEpemWg%3D%3D”}],”group”:”cf-nel”}
    NEL: {“report_to”:”cf-nel”,”max_age”:604800}
    Server: cloudflare
    CF-RAY: 61ed2dff7c86cddf-CDG

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support WFAdam

    (@wfadam)

    Hello @dok_h and thanks for reaching out to us!

    It looks like Cloudflare might be redirecting the admin-ajax.php request.

    If your site is protected by Cloudflare, you may need to update your Cloudflare settings to allow your site to connect back to itself. You should be able to do this by going to your Cloudflare control panel.

    • Login to Cloudflare
    • Go to “Firewall”
    • Click the “Firewall Rules” tab
    • Click “Create a Firewall rule”
    • Name the rule under “Rule Name”
    • Set the “Field” under “When incoming requests match…” to “IP Address”
    • Enter your site’s IP address under “Value”
    • At the bottom, under “Then…Choose an action” change “Block” to “Allow”
    • Click “Deploy

    Once you have added your site to the Cloudflare Whitelist, head back over to your site and attempt another scan.

    Let me know if this helps and if you have any questions!

    Thanks!

    Thread Starter Nick B.

    (@dok_h)

    Hi @wfadam , thanks for the reply, unfortunately this did not solve the issue. Any other idea? I also tried “Start all scans remotely” option, but no luck. Connection to Wordfence server is OK, but connecting back to site still fails.

    Plugin Support WFAdam

    (@wfadam)

    Can you send me another diagnostic now that we have those settings in place?

    If you could, could you also screenshot your Scan Performance Settings from your Wordfence > All Options > Scan Options > Performance page.

    Thanks!

    Thread Starter Nick B.

    (@dok_h)

    Hi,

    here is connectivity diagnostics: https://codeshare.io/GLkrKp

    I believe its the same.

    Here is screenshot: https://postimg.cc/4nmJdhJY

    Let me know if you need anything else.

    Thanks

    Plugin Support WFAdam

    (@wfadam)

    What is strange is the response is a 307. If this was Wordfence related it would either be a 403(Firewall) or a 503(Rate-Limit or Brute Force Protection). It is definately something Cloudflare related, I would assume CF is limiting admin-ajax.php connectivity.

    Can you send a diagnostic report to wftest @ wordfence . com? You can find the link to do so at the top of the Wordfence Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    Thanks!

    Thread Starter Nick B.

    (@dok_h)

    Hi @wfadam

    The report is sent. Let me know if it helps.

    Thanks

    Plugin Support WFAdam

    (@wfadam)

    Thanks for sending that! I see a few issues on your site but lets start by correcting the current scan issue.

    Head over to your site and go to Wordfence > All Options > General Wordfence Options > How does Wordfence get IPs. Since you’re using Cloudflare, select “Use the Cloudflare “CF-Connecting-IP” HTTP header to get a visitor IP. Only use if you’re using Cloudflare.”.

    This will change how your site detects IP addresses, which will correct the issue you’re seeing. Currently, your site is seeing everyone as 1 person instead of unique visitors.

    Let me know if this resolves your scan issue!

    Thanks!

    Thread Starter Nick B.

    (@dok_h)

    I tried that before (and now again). Unfortunately, it doesn’t solve the issue. As soon as I click on the Wordfence menu option “scan” I am getting “Scan Failed”, even before I click “Start New Scan” button (which cannot be clicked). By the way, this is not just this site, it’s all the sites. If you think of something else to try (on Wordfence or on Cloudflare), let me know. Sorry if this issue is becoming annoying ??

    Thanks

    Plugin Support WFAdam

    (@wfadam)

    Now that you have the IP detection corrected, can you send me another diagnostic. I want to make sure that the connection is working properly. So we can rule the connection issue out.

    Thanks!

    Thread Starter Nick B.

    (@dok_h)

    It’s done (from Diagnostics page).

    Plugin Support WFAdam

    (@wfadam)

    I think it’s Cloudflare still. Its possible the IP that is whitelisted in Cloudflare is incorrect.

    I see that cron jobs were overdue too, which means it’s not just Wordfence that can’t connect back, but trying to start cron is failing too.

    Check and verify the correct IP was whitelisted in Cloudflare. If you want to verify the sites IP address, navigate to Wordfence > Tools > Diagnostic > Connectivity and you will see IP(s) used by this server. Make sure the first IP here is the IP that is whitelisted in Cloudflare.

    Also, if you have Cloudflare’s “under attack” mode enabled too, you could try temporarily disabling that. It’s meant to block automated connections and could be related.

    Thanks again!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Scan Failed – Connectivity issue’ is closed to new replies.