Menu

AWS WAF challenge vs CAPTCHA: which token you need
📰

AWS WAF challenge vs CAPTCHA: which token you need

DEV Community: api·Bob·4 days ago
#ZMgEo1z8
#devtoapi#devto#dev#captcha#token
Reading 0:00
15s threshold

Your scraper gets past the AWS WAF page check, the aws-waf-token cookie is set, and then the sign-up or checkout POST comes back 405 with "Request not allowed due to WAF captcha". The token is fine. It is the wrong kind: the page only ran a challenge, and that action is behind a CAPTCHA rule. Send jsapi.js instead of challenge.js and the same request goes through. CapBypass solves either kind in about 1.5 s on average.

Challenge vs CAPTCHA in AWS WAF

AWS WAF has two actions a rule can apply, and both end in the same aws-waf-token cookie:

Challenge CAPTCHA

What the visitor sees nothing, or a short interstitial an image or audio puzzle

Script challenge.js jsapi.js

Host pattern *.token.awswaf.com , *.sdk.awswaf.com *.captcha.awswaf.com , *.captcha-sdk.awswaf.com

Blocked response 202 with a challenge page 405 with a CAPTCHA page

Typical use page loads, browsing, search sign-up, login, checkout, forms

The token is not a single pass/fail flag.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.