'WordPress - Ajax call response with .well-known/captcha
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>
Solution 1:[1]
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).
Solution 2:[2]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Alec Smart |
| Solution 2 | Rodney |
