Agent Ops Club by Reinventing.AI

AI Agent Web Scraping: When the Site Blocks Fetch, Read It the Way a Person Would and Skip the Proxy Pile

AI agent web scraping without the proxy pile: make the agent prove every read, use the front door, cap the pages, and leave the send button to you.

By

Published 9 min read

AI Agent Web Scraping

Ask an AI agent to read a web page and one of three things happens. It gets the page. It gets a blank screen or a challenge page and tells you it succeeded anyway. Or it gets a redirect to somewhere you never meant to go and quietly reports on that instead. The third one is the one that costs you, and almost nobody writes about it.

Most advice on AI agent web scraping is a tool list. A fetch API here, a proxy network there, a stealth plugin to go with it. That advice answers the question of how to get past the block. I want to answer a different one: what should the agent do when a site does not want to be fetched, and you do not want to spend your week fighting it?

My answer, after running agents against sites that have no API and no patience for bots, is to stop treating it as scraping at all. For the sites that matter to a small business, the right route is the browser you already use, driven the way you would drive it, at the pace you would drive it.

Why does an AI agent get blocked when a human does not?

Because the request looks different long before the content does. A plain fetch announces itself in a dozen small ways: no history, no cookies, no scroll, a request that lands on a deep page without ever visiting the front door, and a rhythm that is perfectly regular. A person arrives on the home page, looks around, clicks, reads, and leaves. A scraper arrives on page forty of a listing and asks for page forty-one one second later.

Large sites have spent years learning to tell those two apart. Some of them now sort traffic into search crawlers, agents and training bots, and treat each differently. You can dislike that, but it is the environment. The agent is not being singled out. It is being read as what it looks like.

There is also a quieter reason. Many of the pages you care about sit behind a login. A fetch tool has no login, so it sees the public shell, or a prompt to sign in, and a careless agent summarizes the prompt.

What are the three ways a blocked fetch fails?

I keep a short list of failure shapes, because each one needs a different fix.

The loud block. An error code, a challenge, a plain refusal. This is the good case. You know, the agent knows, and the run stops. Nothing is lost except time.

The silent empty. The page loads, but the part you wanted is drawn by script after the fact, so the fetch returns a shell with no content in it. The agent sees a valid page with nothing on it and reports "no results found". That sentence is false, and it will sit in your notes as a fact.

The redirect to somewhere else. The agent asks for one address and the site sends it somewhere different, often a sign-in page, an error page, or an empty account page. I hit this when an agent opened a deep link to a community's rules page while signed in. The account was redirected to an empty moderator page, and the agent had no way to know the rules existed. They were sitting in plain view in the community sidebar the whole time.

Notice that two of the three look like success. That is the real hazard in AI agent web scraping, and it is why the first rule below is about verifying, not fetching.

Rule one: make the agent prove it saw the thing

Before you tune anything, change what counts as a finished read. An agent that fetches a page and says "done" has proved nothing. Ask for evidence that could only come from the real page: the first heading, one specific line of text, a count of items visible. If the evidence is missing, the run reports a failed read, not an empty result.

I write this straight into the routine instruction: "If you cannot quote a line from the page, say the read failed." It is one sentence and it turns the silent empty into a loud block, which is the failure you can actually handle.

Rule two: use the front door

Here is where I part ways with the usual advice. Instead of an anti-detection layer, I give the agent a browser session that is already mine and tell it to move like me.

The rules I give it are plain:

  1. The only address it types is the home page of the site.
  2. Everything after that is reached by clicking: the search box, the result, the tab.
  3. It never jumps to a deep address a person would not type, such as a rules page, a submit page, or an old-interface domain.
  4. It reads rules and details where a person reads them, in the sidebar or the About tab.
  5. It leaves a few seconds between actions and looks at the feed before it acts.

That is the whole method. It is slower than a fetch call, and it works on the sites where fetch calls fail, because to the site it looks like what it is: an ordinary visit from a signed-in person. I cover the account-safety side of this in more depth in the post on running an agent in your logged-in browser, and the broader failure modes for sites with no API in the browser automation write-up.

Is it okay to scrape a site at all?

Two checks come first, and both take minutes.

The first is the site's own statement of what automated visitors may do. The standard for that is the Robots Exclusion Protocol, written up as RFC 9309. It is not a legal shield and not every site honors it from the other side, but a site that tells crawlers to stay out of a path has told you something, and an agent of mine does not argue with it.

The second is the site's terms. If they forbid automated access to the thing you want, the answer is to find a different way to get it, or to do that part by hand. I would rather lose a data point than put a real account at risk.

Notice what this does to the volume question. If you are reading a handful of pages a run, as a person would, for your own use, you are in a very different position from someone harvesting a million listings. The method above is built for the first case on purpose. It is not a way to harvest at scale, and I would not use it as one.

Rule three: the agent reads, you act

Reading a page rarely harms an account. Posting, sending and buying are different. So I keep one boundary fixed everywhere: the agent drafts and stops. The text goes into the open composer, and I press Post or Send myself. When a platform can be set to send on Enter, the agent inserts the text by script rather than typing it, so a stray keystroke cannot send anything.

This is the same reasoning behind the approval workflow I use for everything unattended: read freely, change only with a human in the loop. A reader that never writes cannot post something embarrassing in your name.

Rule four: one agent per site at a time

If you run more than one routine, give each site a lock. A small file that says "this routine is on this site right now" is enough. Two agents driving the same account at the same moment produce exactly the kind of overlapping behavior platform trust systems flag, and they also scramble each other's results: one agent's click lands in the other's page. I go into this in the piece on running multiple agents on one machine.

Rule five: keep the pages few and the runs short

A person does not read two hundred profiles in ten minutes. So a routine that visits a site gets a cap: a small number of pages per run, spread through the day if you need more. This is the opposite of what scraping guides optimize for, and it is deliberate. A slow, small, boring pattern is the one that never draws attention, and an agent that runs for months beats a fast one that is banned by Friday.

If you need real volume from a source that offers it, the right move is the official route: an export, a data feed or a paid API. Use the browser for the long tail of sites that have nothing else.

What should the agent do when it still cannot get the page?

Stop, and say so in plain words. The report line I want is "could not read this page, here is what I saw instead", with the redirect target or the challenge text attached. That one line tells me whether to retry tomorrow, do it by hand, or drop the source.

What I do not want is a workaround invented on the fly. An agent that decides, mid-run, to try a different route to the same blocked content is making a decision that belongs to me. A blocked read is information about the source, and I would rather have the information than the page.

A small checklist you can paste into any routine

  • Quote a line from the page, or report the read as failed.
  • Type only the home address. Reach everything else by clicking.
  • Check the site's crawler rules and terms before the first run.
  • Draft and stop. A person presses every send button.
  • One lock per site, so one agent at a time.
  • A page cap per run, and a pause between actions.
  • On a block, report what was seen and stop. No improvised detours.

FAQ

Can an AI agent scrape any website?

No, and it should not try to. Some sites forbid automated access, some require a login, and some actively sort and block agent traffic. The practical question is not whether it can be done, but whether it should be, and whether a lighter route such as an export or an official feed already exists.

Why does my AI agent say a page is empty when it is not?

Usually the content is drawn by script after the page loads, so a plain fetch gets the shell only. Have the agent open the page in a real browser session and quote a line from it before it reports anything. If it cannot quote a line, the read failed.

Is using my own logged-in browser safer than a scraping API?

It is safer for your own account in one way and riskier in another. The visits look like yours, so they are less likely to be flagged. But the account is yours, so any behavior that does get flagged lands on you. That is why the pace, the page cap and the draft-and-stop rule matter more here than they would with a throwaway tool.

Should I use proxies and stealth plugins?

I do not, for sites tied to an account I care about. Hiding the agent from a site that is deliberately sorting agents puts you in an arms race you pay for every month. For public data at volume, use an official feed or a legitimate data provider instead.

What is the fastest rule to adopt today?

The evidence rule. Add one sentence to every routine that reads the web: quote a line from the page, or report the read as failed. It costs nothing and it removes the most expensive failure, the confident answer built on a page the agent never saw.

Where this comes from, and where to go next

These rules are part of what I am covering in the Agent Ops Browser Use Hacks session, a members session on Saturday, October 17 at 10:00 AM Eastern. You can see the details on the session page.

If you want the rest of the setup, the Agent Ops Club has a free plan, and inside it the AI Employees are built around these same habits: read first, draft, and leave the final click to you. Start free, look at one role, and see whether the rules fit how you work.

Mark Fulton

Written by

Mark Fulton

AI agent and app developer. Founder, Reinventing.AI.

Mark Fulton is a leading AI agent and app developer. He has built AI agents for 4 years, after 27 years in web development, and has sold over $1.4M in web and AI solutions. He founded Vibe Coding is Life, a Facebook group of 426,000+ members.

He also offers paid 1 on 1 AI strategy sessions.

Put AI Employees to work

The Agent Ops Club is where I share the AI Employees, the software and the live sessions behind these posts.