A few years ago, a scraper was a script someone wrote on a Friday afternoon and left running over the weekend. Today, most visitors to a typical website are not people at all. Imperva’s 2026 Bad Bot Report
found that automated programs made up 53% of web traffic in 2025, up from 51% a year earlier. A growing share of that traffic comes from AI agents: software that does not just collect pages, but reads them, makes decisions and takes action.
That shift has turned data collection into something close to a frontier. The rules are unclear, the courts are still drawing lines, and website owners are building taller fences. This article explains what is changing, where the real risks are, what the law says so far, and how to set up scraping you can explain to a site owner, a regulator or your own customers.
The short version: AI agents make scraping faster, bigger and harder to explain. The safest approach is to stay transparent, respect the rules a site publishes, avoid personal and login-gated data, and run your traffic through infrastructure you can monitor and control.
The Changing Landscape of Web Scraping
AI agents are changing web scraping in three ways. They browse and decide on their own
instead of following a fixed script, they work at much larger scale, and they sometimes act on
behalf of a user, such as logging in or buying. That makes their traffic harder to classify, and
harder for websites to trust.
Classic scrapers were predictable. They requested the same pages in the same order, making them easy to spot and limit. An AI agent behaves more like a person with a very fast browser. It follows links, reads what it finds, and changes course. Imperva’s 2026 report is built around this change, and it treats agentic AI as a major new source of automated traffic.
Website owners have noticed. In July 2025, Cloudflare announced that it would block AI crawlers by default for new customers, and it said more than one million customers had already switched on its AI-bot blocking option. Meanwhile, the robots.txt file that sites use to state their wishes is a request,
not a lock. The standard itself says its rules are “not a form of access authorization”
For teams that collect data legitimately, the result is a squeeze: more blocking, more scrutiny, and more ways to make a mistake. A sound foundation is a clear policy, plus reliable web scraping proxies that let you control where your traffic comes from and how fast it moves.
What Are the Biggest Risks of AI-Powered Web Scraping?
The biggest risks are being blocked, breaching a site’s terms or the law, collecting personal data without a lawful basis, feeding bad data into your models, and giving an agent too much access. Most of them grow with scale, so small mistakes in an agent’s setup can quickly become expensive ones.
| Risk | What it looks like | How to reduce it |
| Blocking and bans | CAPTCHAs, error pages, blocked IP ranges, lost access | Slow down, identify your bot, use clean and well-managed IPs |
| Legal and contract | Terms-of-service claims, cease-and-desist letters, lawsuits | Stick to public pages, read the terms, get legal advice for sensitive projects |
| Privacy | Names, emails and profiles collected without a lawful basis | Avoid personal data, or document your basis and delete what you do not need |
| Data quality | Outdated, duplicated or manipulated pages polluting your dataset | Validate sources, keep raw copies, spot-check samples |
| Agent security | An agent logs in to accounts or follows unsafe links | Limit permissions, avoid stored credentials, add human approval |
The last risk is the one people underestimate. When Amazon sued Perplexity, it argued that the company’s shopping agents could act inside password-protected customer accounts, which raised security concerns. Security teams see the other side of the same coin. They use proxies to look at suspicious sites without exposing their own network, which is one reason cybersecurity proxies are a common part of threat research and OSINT work.
Is AI-Powered Web Scraping Legal?
Often yes, but not always. In the US, courts have generally been friendlier to scraping public, logged-out pages than to scraping behind a login. Privacy law, contract terms and copyright still apply, and the rules for AI agents are only starting to be tested. Treat it as a risk to manage, not a blanket permission.
Here is how the main cases line up:
- hiQ v. LinkedIn. The Ninth Circuit held that reading publicly accessible profiles was not access “without authorization” under the federal anti-hacking law, and it stood by that view after the Supreme Court’s 2021 Van Buren decision. LinkedIn later won a permanent injunction against hiQ on other grounds, so the case is not a free pass.
- Meta v. Bright Data (2024). A federal court found that Meta’s terms did not bar logged-off scraping of public Facebook and Instagram data. Commentators stress that the decision was specific to those facts and does not make all logged-off scraping safe.
- Amazon v. Perplexity (2026). In March, a judge blocked Perplexity’s Comet agent from password-protected Amazon pages. On August 4, the Ninth Circuit vacated that order,
reasoning that the user, not Perplexity, “accesses” the site, and that the assistant is a tool. The ruling came on appeal from a preliminary injunction, not after a full trial, so the final word is still to come.
The Amazon case also carries a practical lesson. Amazon argued that Perplexity disguised its agent as an ordinary Chrome browser rather than identifying itself. Whatever the final outcome, hiding what your agent is makes your position weaker.
Privacy law adds another layer. The UK Information Commissioner’s Office says legitimate interests can be a valid lawful basis for using web-scraped personal data to train generative AI, but only if the developer passes a three-part test covering purpose, necessity and balance. The ICO has also warned that most people don’t know their data is being scraped, making the balancing test hard to pass.
This is information, not legal advice
Laws differ by country and change quickly. If your project involves login-gated pages, personal data or resale of scraped data, talk to a qualified lawyer first.
The Role of Proxy Infrastructure in AI-Powered Scraping
Residential proxies give scrapers IP addresses from real home connections, so requests look like ordinary visitors from a chosen location. Rotating residential proxies spread requests across many addresses, which reduces blocks and lets you see local content. They are infrastructure, not permission: they do not make a risky project lawful.
Most sites limit how many requests one IP address can make. If a hundred agents share a single address, that address is blocked within minutes. Rotating residential proxies solve this by sending each request, or each session, through a different home-connection address. They also let an agent see what a visitor in another country sees, which matters for pricing, ads and local search results. Shifter’s network, for example, offers 205M+ residential IPs in 195+ countries, with city and ASN targeting.
There is a flip side. Because residential IPs look like real users, they are also attractive to bad actors. When you choose a provider, ask how its IPs are sourced and what its acceptable-use policy says. A provider that is open about both is easier to trust, and easier to explain to your own legal team.
Managing Scraping Infrastructure as Agents Multiply
As agents multiply, the hard part is no longer writing a scraper. It is governing all of them. When every team runs its own scripts, nobody knows who is collecting what, how fast, or from where.
A scraping API gives you one place to send requests. It bundles proxies, retries and page rendering into a single call, which means you do not rebuild the same plumbing for every project. More importantly, it gives you a single point where rules can be enforced. Three things are worth centralizing:
- Rate limits and block lists. Cap requests per site, and keep a list of domains your agents must never touch.
- Logging. Record which agent requested what, when, and for which project, so you can answer questions later.
- Data handling. Decide what is stored, for how long, and who can see it.
Managing IP Identity and Reliability
IP management matters because an IP address is how websites recognize and judge your agent. A noisy, shared or constantly changing address can get an agent blocked, while a stable, well-behaved one builds trust. For agents that log in or act, a steady location and a clear identity also make activity easier to audit.
Rotation is ideal for reading many public pages. It is the wrong tool when an agent holds a session. A login that appears from three countries in ten minutes looks like an account takeover. ISP proxies suit that job. Each address stays on the city and internet provider you choose for the whole billing period, while the address itself refreshes naturally, so an agent looks like one consistent household. Give each agent or project its own identity, and you can trace any complaint back to the right system.
A stable IP is not a disguise
Pair it with an honest user-agent that says who you are and how to reach you. RFC 9309 says a crawler’s identification string should describe its purpose. Hiding your agent is what got Perplexity into an argument with Amazon.
How Can Businesses Make AI-Driven Scraping More Responsible?
Make AI-driven scraping more responsible by being transparent, respecting a site’s published rules, limiting your request rate, avoiding personal and login-gated data, and keeping humans in charge of sensitive actions. Document what you collect and why, so you can explain it if a site owner, regulator or customer asks.
Use this checklist before any agent goes live:
- Read the rules. Check robots.txt and the site’s terms before you collect anything.
- Identify your bot. Use a clear user-agent with a contact address.
- Slow down. Rate-limit requests so you never strain a small site.
- Prefer official sources. If a site offers an API or a data licence, use it.
- Skip personal and login-gated data. If you need it, document your lawful basis first.
- Keep a human in the loop. Require approval for logins, purchases and other actions.
- Log everything. Keep records of what each agent collected, when and why.
- Review regularly. Laws and platform rules change, so revisit your policy every quarter.
Here is a short example of a polite fetch in Python. It checks robots.txt, identifies the bot and waits between requests.
Python: a polite fetch
import time
from urllib import robotparser
import requests
BOT = “ExampleBot/1.0 (+https://example.com/bot; contact: data@example.com)”
rp = robotparser.RobotFileParser(“https://example.com/robots.txt”)
rp.read()
def polite_get(url, delay=2):
if not rp.can_fetch(BOT, url):
return None # the site asked bots to stay out
time.sleep(delay) # simple rate limit
return requests.get(url, headers={“User-Agent”: BOT}, timeout=30
Key Takeaways
- AI agents browse, decide, and act, so their traffic is larger and harder for websites to classify than classic scrapers.
- The main risks are blocking, legal claims, privacy problems, poor data quality and agents with too much access.
- US courts have been friendlier to public, logged-out scraping, but terms, privacy law and copyright still apply, and agent cases are new.
- Proxies are infrastructure, not permission. Rotation suits reading many public pages, and stable ISP addresses suit sessions.
- A scraping API gives you one place to enforce rate limits, block lists and logging.
- Be transparent. An honest user-agent protects you better than a disguise.
- Review your scraping policy regularly, and get legal advice for anything sensitive.




