NeuroCaptcha

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.

Statuscoming soon
Type codesAmazonTaskProxyless — without a proxy; AmazonTask — with your proxy
Proxyoptional: the second code takes your proxy
Also accepted asAmazonTaskProxyLess
Priceset 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:

type
stringrequired
Task type: AmazonTaskProxyless, AmazonTask.
websiteURL
stringrequired
Full address of the page with the captcha: http(s), up to 2048 characters, a public site.
websiteKey
stringrequired
Site key of the widget on the page. One line of text, up to 4096 characters.
iv
string
iv from the page. One line of text, up to 1024 characters.
context
string
context from the page. One line of text, up to 4096 characters.
challengeScript
string
URL of challenge.js. Absolute http(s) URL of a public site, up to 2048 characters.
captchaScript
string
URL of the captcha script. Absolute http(s) URL of a public site, up to 2048 characters.
jsapiScript
string
URL of jsapi.js (the JS API mode). Absolute http(s) URL of a public site, up to 2048 characters.
userAgent
string
User-Agent of the browser that will use the answer, up to 512 characters.
proxyType
string
http (default), https, socks4 or socks5.
proxyAddress
stringfor proxy types
IP address or host name of the proxy. Private and local addresses are rejected.
proxyPort
integerfor proxy types
Proxy port, 1–65535.
proxyLogin
string
Proxy login, up to 256 characters. Stored encrypted.
proxyPassword
string
Proxy password, up to 256 characters. Stored encrypted.

Request#

A AmazonTaskProxyless task:

POST /createTask
{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "AmazonTaskProxyless",
    "websiteURL": "https://example.com/login",
    "websiteKey": "SITE-KEY-1234"
  }
}

Response#

getTaskResult once the task is solved:

getTaskResult
{
  "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.phptask
sitekeywebsiteKey
iviv
contextcontext
pageurlwebsiteURL
challenge_scriptchallengeScript
captcha_scriptcaptchaScript
jsapiScriptjsapiScript

res.php returns the solution as a JSON object (in request with json=1).