Amazon AWS WAF captcha
Amazon AWS WAF captcha: parameters, request, response and the 2Captcha method of AmazonTaskProxyless and AmazonTask.
On this page
Amazon AWS WAF captcha: the puzzle that AWS WAF shows before a protected page. The answer is captcha_voucher and existing_token for the WAF token request.
| Status | coming soon |
| Type codes | AmazonTaskProxyless — without a proxy; AmazonTask — with your proxy |
| Proxy | optional: the second code takes your proxy |
| Also accepted as | AmazonTaskProxyLess |
| Price | set when the type is switched on — see pricing |
Rules#
- The proxy code solves through your proxy, so the answer is issued for your IP address. See Proxies.
Parameters#
Fields of the task object in createTask:
ParameterDescription
typestringrequired- Task type:
AmazonTaskProxyless,AmazonTask. websiteURLstringrequired- Full address of the page with the captcha: http(s), up to 2048 characters, a public site.
websiteKeystringrequired- Site key of the widget on the page. One line of text, up to 4096 characters.
ivstringivfrom the page. One line of text, up to 1024 characters.contextstringcontextfrom the page. One line of text, up to 4096 characters.challengeScriptstring- URL of
challenge.js. Absolute http(s) URL of a public site, up to 2048 characters. captchaScriptstring- URL of the captcha script. Absolute http(s) URL of a public site, up to 2048 characters.
jsapiScriptstring- URL of
jsapi.js(the JS API mode). Absolute http(s) URL of a public site, up to 2048 characters. userAgentstring- User-Agent of the browser that will use the answer, up to 512 characters.
proxyTypestringhttp(default),https,socks4orsocks5.proxyAddressstringfor proxy types- IP address or host name of the proxy. Private and local addresses are rejected.
proxyPortintegerfor proxy types- Proxy port, 1–65535.
proxyLoginstring- Proxy login, up to 256 characters. Stored encrypted.
proxyPasswordstring- Proxy password, up to 256 characters. Stored encrypted.
Request#
A AmazonTaskProxyless task:
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "AmazonTaskProxyless",
"websiteURL": "https://example.com/login",
"websiteKey": "SITE-KEY-1234"
}
}Response#
getTaskResult once the task is solved:
{
"errorId": 0,
"status": "ready",
"solution": {
"captcha_voucher": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9…",
"existing_token": "f8ab5749-f916-4b9c-9e5c-5c6d1d1c5a44:EQoAf0APpGIKAAAA…",
"userAgent": ""
},
"cost": "0.001500",
"ip": "198.51.100.7",
"createTime": 1793370000,
"endTime": 1793370012,
"solveCount": 1
}2Captcha in.php#
The same task through the 2Captcha API: method=amazon_waf, parameters → task fields:
| in.php | task |
|---|---|
sitekey | websiteKey |
iv | iv |
context | context |
pageurl | websiteURL |
challenge_script | challengeScript |
captcha_script | captchaScript |
jsapiScript | jsapiScript |
res.php returns the solution as a JSON object (in request with json=1).