• Resolved barrelleaf

    (@barrelleaf)


    Hi, I just see an error in Diagnostics.

    In the Connectivity > Connecting back to this site, there’s an error says:

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

    HTTP/1.1 403 Forbidden
    Date: Tue, 15 Jun 2021 00:59:15 GMT
    Content-Type: text/html; charset=UTF-8
    Transfer-Encoding: chunked
    Connection: close
    Vary: Accept-Encoding
    Cache-Control: no-cache, no-store, must-revalidate
    Pragma: no-cache
    Expires: 0
    Vary: User-Agent
    CF-Cache-Status: DYNAMIC
    cf-request-id: 0aaec7130a00001fcfbe8c0000000001
    Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v2?s=p5RPCgVH5HFR%2BhcqVzb59zdxkhJvInyQgy5s2UdUWLoaBK7Sf79hvI8t3hsVYJndQE1irWH9EYVAxWU3EwEBcp%2FhblwsEv4kYMEKkxtAJJovCnDQyySsxIRJ4bDBnFoGipPrNtINENPhDTF9"}],"group":"cf-nel","max_age":604800}
    NEL: {"report_to":"cf-nel","max_age":604800}
    Server: cloudflare
    CF-RAY: 65f7dacb4b051fcf-NRT
    Content-Encoding: gzip
    alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400
    
    				<div style='height: 98vh;'>
    					<div style='text-align: center; padding: 10% 0; font-family: Arial, Helvetica, sans-serif;'>
    						<div><p>Bot Protection Firewall</p></div>
    						<p>Blocked because of Malicious Activities</p>
    						<p>Reference ID: 189428559560c7fb63230cf</p>
    					</div>
    				</div>

    Here is the screenshot.

    It seems related to Cloudflare but I don’t know how to fix this. I’ve searched the web but didn’t find the answer. I think there might be some settings that need to be modified?

    Thank you.

    • This topic was modified 3 years, 9 months ago by barrelleaf.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @barrelleaf, thank-you for your message and the detailed description of what you’re seeing.

    I have seen the wp_remote_post() issue come up recently where the Cloudflare firewall needed to have Wordfence IPs added to the whitelist, although sometimes this is also fixed by adding your own site’s IP to this list. Your site’s IP can be found at Wordfence > Tools > Diagnostics > Connectivity > IP(s) used by this server.

    For your information, our IPs can be found here: https://www.wordfence.com/help/advanced/#servers-and-ip-range

    • 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”

    Return to your scan page and CANCEL the current scan and then start a NEW scan. Repeat the above process for our IP addresses if adding your own site’s doesn’t work.

    Let me know how you get on!

    Thanks,

    Peter.

    Thread Starter barrelleaf

    (@barrelleaf)

    Hi @wfpeter, thank you for your response.

    I’ve seen 3 IP addresses in Diagnostics.
    It looks like this:

    172.104.79.XXX,172.67.176.XXX,127.0.0.1

    Should I add all of them in the Cloudflare using “And” or “Or”
    (here is the screenshot)

    Plugin Support wfpeter

    (@wfpeter)

    Hi @barrelleaf,

    Please use “or” in this context as only 1 IP will contact at any one time.

    Thanks,

    Peter.

    Thread Starter barrelleaf

    (@barrelleaf)

    Hi @wfpeter,

    I’ve set it up. And since this seems related to the other thread, I will close this thread here.

    Thank you.

    Nora

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“wp_remote_post() test back to this server failed” error’ is closed to new replies.