WordPress - Ajax call response with .well-known/captcha

Viewed 4585

I am trying to get data with ajax call on WordPress. But ajax response return .well-known/captcha as a result.

Response result:

<html><meta http-equiv="refresh" content="0;/.well-known/captcha/"></meta></head></html>
2 Answers

I'm going to go out on a limb and say that you're probably getting this error on a site hosted with SiteGround. They implemented a new firewall which blocks requests based on IP etc. You can learn about it here: https://www.siteground.com/blog/new-anti-bot-ai/

The only resolution is to ask SiteGround to disable this feature for your site.

This is happening because your AJAX calling is being blocked by SiteGround to show a Captcha (which obviously you cannot fill in an AJAX call).

I had the same issue today and was told to clear my CloudFlare cache (which fixed it).

However, I will be leaving SiteGround unless this "feature" is turned off. I was mentioned in an important industry webinar and lost a lot of traffic and potential business as Siteground blocked everyone and the captcha did not work.

Related