In December 2024, the European Data Protection Board published an opinion on AI models. One of its questions was how unlawful processing of personal data in the development phase affects the lawfulness of the model’s later operation. Most scraping scripts never get that kind of scrutiny at the start. Someone needs a dataset, the pages are public, and a script shows up by Friday.
Proxies usually enter the conversation next, as if they were the hard part. A team ready to buy proxies has often settled nothing about what the crawler must refuse to collect. A proxy only changes where your requests come from. What you collect, how fast, and where the output ends up are your team’s calls, and they deserve ground rules before any money changes hands.
Why AI pipelines raise the stakes
Picture a made-up team building a rental-price assistant. Their scraper saves each listing’s full text, landlord phone numbers included. Those numbers flow into a vector index. A few weeks later a user asks who owns a flat, and the assistant answers with a name and a number.
Nobody planned that. The scraper stored everything, and the index remembered everything.
A spreadsheet mistake stays in one file. A mistake that reaches an embedding index, a fine-tune or an evaluation set copies itself into every step downstream. That’s why the cleanest fix sits at the very start of the pipeline. The EDPB’s opinion lists specific measures for web scraping, such as limits on collection, for example ensuring certain data categories are not collected.
Decide what the crawler won’t collect
Start with exclusions. The list runs shorter and sharper than a wish list. The rental team above might agree to record rent, size and neighborhood, and to drop the landlord’s name, phone number and any photos of people.
Exclusions also protect the project when scope creeps. A product manager will eventually ask whether you could grab reviewer profiles too, since they’re right there. A written answer, agreed before anyone got excited, lets you say no without a debate.
Personal data is the clearest line. Names, contact details, account handles and anything that points to a specific person should stay out unless you have a solid legal basis and a genuine need. Public visibility doesn’t switch privacy law off. On the EU side, the EDPB confirmed that a developer can, in principle, rely on legitimate interest as a legal basis, subject to a case-by-case assessment and a three-step test. That’s a test you have to pass and document, not a free pass.
Put the exclusions in code, too. A field the scraper never stores can’t leak, get misused or sit forgotten in an old folder. Filters that drop unwanted fields at download time beat cleanup scripts, because cleanup is the first job skipped when a deadline closes in. For AI work, run those filters before text reaches a chunker or an embedding step.
Logged-in areas make the second line. A page behind an account means its owner chose who sees it. Keep collection to pages anyone can open in a fresh browser window. Only then does it make sense to ask whether the project needs proxies at all, for example to view regional versions of public pages.
Read the site’s rules first
Before adding a site to a job, someone should read its terms of use and its robots.txt file. That file lists the paths the owner wants crawlers to avoid. It works as a request, and the standard says so directly: the rules are not a form of access authorization. A crawler can ignore it, which is why honoring it says something about the people running the crawler.
Terms of use can run stricter than the file. When they forbid automated collection outright, stop and look for another route. Plenty of organizations publish open datasets, feeds or official exports, and a short email asking for access can save weeks of scraping.
Rules change, so one check isn’t enough. Keep a note per source with the date its terms were last read and what they allowed. Look again before every large run. When the wording is murky, treat it as a no until someone has asked the owner.
Pace the crawl
A crawler running flat out can feel like an attack to a small site, even when the intent is harmless. Set a modest delay between requests to the same host, cap parallel requests, and schedule heavy jobs for quiet hours in the site’s time zone, not yours.
Build in automatic backoff. If responses slow down or error codes appear, the job should pause rather than retry harder. Give the crawler an honest user agent string with a contact address, so a worried owner can write to you instead of blocking blindly.
Most wasted traffic comes from fetching the same page twice. Keep a local store of everything downloaded, keyed by address and fetch time, and check it before sending anything new. Conditional requests help too: a server can answer that a page hasn’t changed since your last visit, which costs it almost nothing. Deduplicate the queue as well, since crawlers love to find the same product through five category links.
AI jobs add a twist. A nightly re-embedding run that refetches every page turns a polite crawler into a heavy one, so point those runs at your local store.
Try any new job on a handful of pages first. Read the error log, watch response times and open a few saved pages. A broken parser that keeps refetching everything is a common way to overload a site by accident.
Pick infrastructure after the rules
Infrastructure should follow the rules. Once exclusions, site checks and pacing limits are on paper, you can work out what you need: which locations, how much traffic, which tools run the jobs. Teams that pick tooling first tend to bend their policy around it later.
Read a supplier’s acceptable use policy and ask what it logs and for how long. Keep credentials in one shared vault. Make every job log which addresses it used and when. Those logs feel dull until a complaint arrives, and then they tell you which job caused it.
Records should cover the data as well as the traffic. Pull a random sample from the stored output and compare it with the exclusion list. Fields marked for dropping have a habit of creeping back after a site redesign. Sample the chunks in your index too, since that’s where a stray phone number does the most damage.
Write the policy as a one-page document anyone can read over coffee: sources, what you collect and exclude, pacing limits, how long raw pages stay, where the output goes (training, retrieval, evaluation) and who approves changes. Store it next to the code so a new site can’t slip into a job unnoticed.
Then keep it alive. Review it whenever a source is added, and keep a simple change log of who approved what. If a site owner ever writes to ask what you’re doing, that log lets you answer within an afternoon, calmly and with evidence.
Next time someone says “it’s all public anyway,” ask them where the output goes.
Related: Are Free Web Scraping Tools Really Free for AI Projects?
