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

Web scraping

Scraping without getting blocked: a checklist

Blocks are easier to prevent than to recover from. This checklist splits the work into what you settle before the first request, what you watch while the job runs, and what you review once it ends.

How to use this checklist

Go through it once per new target site, and again whenever a job that used to run cleanly starts failing. Each item is a yes or no question with a short reason. You will not need every item for every site; a static blog with no protection needs very little, while a large retailer behind a bot management layer needs nearly all of it. Skipping an item is fine when you know why it does not apply.

Before the first request

Scope and permission

  • Is the data public? Pages anyone can view without signing in are the safe default. Anything behind a login needs a closer look at the terms you accepted.
  • Have you read robots.txt and the terms? They tell you what the site asks of automated visitors. Our article Is web scraping legal? covers the general principles.
  • Is there an official API or a data feed? If one gives you what you need, use it. The trade-offs are in web scraping vs official APIs.
  • Do you need personal data? If not, design the parser so it never stores names, emails or profiles, even by accident.

Reconnaissance

  • Static or dynamic? View the page source. If the data is in it, a plain HTTP client is enough. If not, look in the network tab for a JSON call before reaching for a browser. The static or dynamic page answer shows how to tell.
  • Which protection is in front? Response headers, cookie names and challenge pages reveal the vendor. Knowing whether you face Cloudflare, AWS WAF, DataDome or a plain rate limit decides the rest of the setup.
  • Is there a sitemap? It lists URLs and often their modification dates, which saves crawling category pages just to discover links.

Client choice

  • Does your client's TLS handshake match the user agent you send? A default library handshake with a browser user agent is a contradiction protected sites detect immediately.
  • If you use a browser, is it current and in the newer headless mode? Old builds and legacy headless modes carry well-known markers.
  • Is the identity coherent? User agent, client hints, platform, language, time zone and viewport should describe one plausible device.

Network

  • Does the address type fit the site's audience? Consumer sites expect residential and mobile networks; business tools see plenty of datacenter traffic.
  • Is the exit country right? Prices, stock and search results often depend on location, and a mismatch between address and locale is a signal.
  • Do stateful flows use sticky sessions? Pagination with tokens, carts and forms need one address throughout.

Pacing and politeness settings

  • Is concurrency limited per host? A global limit does not stop one domain from receiving the whole queue.
  • Is there jitter on delays? Regular intervals look mechanical.
  • Do you honor Retry-After and back off exponentially? Retrying instantly after a 429 is the fastest route to a ban.
  • Do you skip assets you do not need? In a browser, blocking images and media cuts load on both sides. Never block the scripts of a bot check.
  • Is there a cache? Raw responses on disk let you re-parse without re-fetching, and conditional requests make revisits cheap.
  • Is the schedule spread out? A daily job that fires every request at the same minute looks like an event. Spread it over a window.

Challenge handling

  • Can your code recognize a challenge page? Check for known markers (widget iframes, check-page titles, specific cookie names, status codes) and treat them as a separate outcome, not as an empty result.
  • Do you know which task type each challenge needs? A Turnstile widget, a full Cloudflare check, an AWS WAF page and a DataDome slider all use different tasks. Map them in advance using the Cloudflare Turnstile, Cloudflare Challenge, AWS WAF and DataDome Slider pages.
  • Do proxy tasks use the same proxy as your session? Cookie-based answers such as cf_clearance and the DataDome cookie only work from the address they were issued to.
  • Do you submit tokens immediately? Tokens expire within minutes and work once. Solve right before you need the answer.
  • Is there a retry limit? A challenge that keeps coming back after a valid answer points to a session or fingerprint problem; retrying forever only costs time.

During the run

  • Are you logging status codes per host and per address? A rising share of 403 or 429 responses is the earliest warning.
  • Are you counting challenge pages? Track them as their own metric. A small steady rate is normal on some sites; a climbing rate means slow down.
  • Are you validating parsed data? Empty fields or sudden changes in item counts often mean the site is serving a different page to you, not that the data changed.
  • Is there an automatic brake? When error or challenge rates cross a threshold, the job should reduce concurrency for that host on its own, rather than wait for someone to notice.
  • Are you saving evidence? A screenshot and the HTML of failing pages make the post-run review much faster.

After the run

  • What share of requests succeeded on the first try? This is the single most useful health number. Track it over time per site.
  • How many CAPTCHAs did you solve, and what did they cost? The balance history on your account shows charges per solved task; failed and unsolvable tasks are not charged. If the count is growing, the pacing or session setup is drifting.
  • Which addresses were flagged? Retire them for that site for a while. Persistently bad ranges should leave the pool.
  • Did the site change? New markup, a new protection vendor or a new API version shows up first as parser failures. Update the reconnaissance notes.
  • Could you have fetched less? Look at which pages changed between runs and adjust refresh intervals so stable pages are visited less often.

The three items that matter most

If you only have time for three things, make them these. First, pace per host with jitter and back-off; rate is the most common trigger by far. Second, make the client coherent, meaning a handshake, user agent and hints that agree. Third, recognize challenge pages as their own outcome and handle them deliberately, with the right task type and a matching session, instead of letting them poison your data as empty results.

Everything else on the list refines those three. The deeper reasoning behind each layer is in why a site thinks you are a bot and how to avoid IP bans; this page is the version you keep open while setting up a job.

Common questions

Do I need every item on the list for a small project?

No. A low-volume job on an unprotected site needs pacing, a cache and basic politeness. Add the rest as protection and volume grow.

What first-try success rate should I aim for?

There is no universal target, but watch the trend for each site. A drop from your usual level is the signal to investigate.

How do I recognize a challenge page in code?

Look for widget iframes, data-sitekey attributes, known check page titles and specific cookies, and for status codes like 403 or 429 on pages that normally return 200.

Is it worth caching pages I will only parse once?

Yes. Parsers break and requirements change, and a cached copy lets you re-extract without visiting the site again.

When should a scraper stop on its own?

When error or challenge rates for a host cross a threshold you set, it should slow down, and if they keep climbing, pause that host and alert someone.

Keep reading