
Sora Fujimoto
AI Solutions Architect

AWS WAF CAPTCHA is a powerful anti-bot mechanism used across Amazon Web Services to block automated or suspicious traffic. Unlike traditional CAPTCHA systems, AWS WAF uses encrypted challenges (JS-based) and strict validation rules.


In this guide, we’ll walk through how AWS WAF CAPTCHA works and how to solve it efficiently using CapSolver.
Before solving AWS WAF CAPTCHA, ensure you have:
✔️ CapSolver API Key
✔️ Proxy (optional)
Status Code 202
Only awsChallengeJs is needed
Status Code 405
Requires all parameters:
awsKeyawsIvawsContextawsChallengeJsA correct AWS CAPTCHA challenge page will:
Return 405 status code
Contain HTML elements:
keyivcontextExample valid responses:


📌 Save these values:
CapSolver supports two task types:
| Task Type | Description |
|---|---|
AntiAwsWafTaskProxyless |
Uses CapSolver’s internal proxy pool |
AntiAwsWafTask |
You must provide your own proxies |
For this tutorial, we use:
👉 AntiAwsWafTaskProxyless
POST https://api.capsolver.com/createTask
{
"clientKey": "yourapiKey",
"task": {
"type": "AntiAwsWafTaskProxyless",
"websiteURL": "https://efw47fpad9.execute-api.us-east-1.amazonaws.com/latest",
"awsKey": "key value",
"awsIv": "iv value",
"awsContext": "context value",
"awsChallengeJS": "URL of the JS challenge"
}
}
POST https://api.capsolver.com/createTask
{
"clientKey": "yourapiKey",
"task": {
"type": "AntiAwsWafTaskProxyless",
"websiteURL": "https://efw47fpad9.execute-api.us-east-1.amazonaws.com/latest",
"awsKey": "",
"awsIv": "",
"awsContext": "",
"awsChallengeJS": "URL of the JS challenge"
}
}
This will return a response containing your taskId, which you’ll use in Step 2.
Poll every 3–5 seconds using getTaskResult:
POST https://api.capsolver.com/getTaskResult
{
"clientKey": "YOUR_API_KEY",
"taskId": "TASK_ID_FROM_CREATE_TASK"
}
A solved token will look like:

✔️ Once solved, create a cookie:
aws-waf-token = <token_from_capsolver>
Add this cookie to your session → validated successfully.
AWS WAF CAPTCHA can be complex due to encryption, context validation, and varying challenge types. However, with CapSolver’s AWS-specific task types, solving it becomes straightforward and reliable.
Using AntiAwsWafTaskProxyless or AntiAwsWafTask, you can:
aws-waf-token cookieStart solving AWS WAF CAPTCHA easily using
👉 CapSolver
A JavaScript-based anti-bot challenge used by AWS to block automated traffic.
405 indicates a CAPTCHA challenge that includes:
keyivcontextThese must be decrypted using CapSolver.
Depends on the status code:
awsChallengeJsYes. Use AntiAwsWafTaskProxyless.
Create a cookie named aws-waf-token with the returned token value.
Compare AWS WAF vs Cloudflare CAPTCHA challenges. Learn how to solve AWS WAF and Cloudflare Turnstile for web automation with high success rates using CapSolver.

Looking for a cheap AWS WAF solver per thousand requests? Compare pricing, speed, and accuracy to find the best value for your automation needs.
