NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Glossary

Web application firewall: rules in front of the site

A web application firewall (WAF) is a filter that sits between visitors and a web application and inspects each HTTP request against a set of rules before letting it through.

Definition

A network firewall decides based on addresses and ports. A WAF works one level higher: it reads the HTTP method, path, query string, headers, cookies and body, and matches them against rules. Its original job was to stop application attacks such as SQL injection, cross site scripting and path traversal. Over time WAF products added rate rules, reputation lists and bot controls, so today the same layer often decides whether a scraper sees content or a challenge.

Where it runs

  • Cloud edge: offered by CDNs and cloud providers, configured in a dashboard, in front of the origin.
  • Load balancer: attached to the balancer in a cloud account, such as AWS WAF on an Application Load Balancer or CloudFront distribution.
  • Server module: an engine running inside the web server or as a sidecar with an open rule set.

How rules are built

A rule combines conditions and an action. Conditions can match a header value, a country, an IP list, a request rate, a known bad pattern in the body, or a bot score from a bot management module. Actions typically include allow, block, count (log only) and challenge. Rules run in priority order, and the first terminating action wins.

rule "protect-login"
  if path starts with "/account/login"
  and rate from same IP > 20 per 5 minutes
  then action = CAPTCHA

That pseudo rule is the most common shape you will meet: a sensitive path, a threshold, and a challenge instead of a block.

Where CAPTCHAs fit

A challenge action lets the WAF avoid false positives. Instead of refusing a borderline visitor, it serves a puzzle or a silent check. If the visitor passes, the WAF sets a token cookie and later requests skip the challenge until it expires. AWS WAF works this way: its CAPTCHA and challenge actions produce an aws-waf-token cookie. Cloudflare's rules can respond with a managed challenge that results in a cf_clearance cookie.

WAF familyChallenge resultGateSolver type
AWS WAFaws-waf-token cookieAWS WAF, plus AWS WAF Image Classification for image puzzles
Cloudflare rulescf_clearance cookie or Turnstile tokenCloudflare Challenge, Cloudflare Turnstile

Recognizing a WAF response

Blocks usually return 403 with a branded page or a short reference ID. Challenges return HTML containing the vendor's script and little else. Some WAFs set identifying cookies even on allowed requests. Recording status codes, response sizes and cookie names per request makes it easy to tell a WAF decision from an application error. The AWS WAF parameters guide shows what to extract from a challenge page.

Working with WAF protected sites

For permitted automation, the steady approach is to stay under rate thresholds, send consistent headers, and handle the challenge action when it fires. With GateSolver you create a task from the challenge parameters, poll for the result, set the returned cookie and repeat the original request. Charges apply only when the task is solved. A WAF block is a different matter: it means a rule decided not to offer a challenge at all, and the right response is usually to slow down or change how the client presents itself, not to retry harder.

Site owners tune their rules continuously, so a path that was open can begin challenging without notice. Building challenge detection into your client from day one saves a scramble later.

If you run the WAF yourself, start new rules in count mode for a few days and read the log before switching them to challenge or block. You will see which legitimate clients, such as payment callbacks or partner integrations, would have been caught, and can exempt them first.

Common questions

What is the difference between a WAF and a firewall?

A network firewall filters by address and port; a WAF reads HTTP requests and filters by their content and behavior.

Can a WAF show a CAPTCHA?

Yes. Many WAFs offer a CAPTCHA or challenge action as an alternative to blocking a suspicious request.

How long does an AWS WAF token cookie last?

The site owner sets the immunity time in the rule; once it expires the challenge appears again.

Why do I get a 403 instead of a challenge?

A block rule matched before any challenge rule, so the WAF chose to refuse rather than to test the visitor.

Which WAF challenges can GateSolver solve?

AWS WAF challenges and image puzzles, and Cloudflare challenge pages and Turnstile widgets.

Keep reading