Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 5 min read

Crawlers are hammering your small site. Block them, let them in, or hand them a map?

Two conversations keep running side by side across the communities we follow, and they rarely meet. In one, somebody who looks after their company's site in-house is staring at gateway errors and a web server that's run

Two conversations keep running side by side across the communities we follow, and they rarely meet. In one, somebody who looks after their company's site in-house is staring at gateway errors and a web server that's run out of worker threads while the CPU sits almost idle. The traffic turns out to be crawlers walking through search and filter pages that never get cached. Another owner posts a chart of bot traffic and asks whether this is normal now. A long thread fills up with owners worried about scrapers copying their whole site. Directory owners notice that bots inflate their listing view counts, so the numbers they show to paying advertisers mean less than they thought.

In the other conversation, people are asking how to add an llms.txt file to a busy WordPress site so AI tools understand it better. One owner found their host had generated one for them without asking, and it described the site wrongly. Tutorials walk through adding one by plugin or by hand.

So the same small site owner is being told to keep the bots out and to put a welcome mat down for them. We have a slightly unpopular view on this, so let's start there and then lay out both sides.

The unpopular opinion

Most small sites don't have a bot problem. They have an uncached pages problem that bots happen to find. A polite crawler reading your cached pages, whether it belongs to a search engine or an AI company, costs very little. What hurts is any visitor, human or not, hitting thousands of filter combinations, search results, calendar views or add-to-cart links that each wake up PHP and the database. Blocking crawlers by name feels like action, and it often misses the cause completely.

Side one: block by default

The case for blocking is simple and it isn't wrong. Your server, your bill, your content. Plenty of crawlers send nothing back, no visitors and no credit, and some ignore robots.txt entirely. A small site on modest hosting can fall over from traffic it gets zero benefit from. Blocking whole groups of bots at the edge, with a firewall or CDN rule, is cheap and quick. And if your content is the product, like a paid course, a directory you've spent years checking by hand, or original writing, letting it get copied wholesale into someone else's answer engine is a business decision you're allowed to refuse.

Side two: let them in and help them read you

The other camp says that's the wrong fight. More people now ask an AI assistant before they search, and if your site isn't readable to those tools, a competitor's will be. For a small business, being named in an AI answer can be worth more than another blog post. That's the thinking behind llms.txt files, clean sitemaps and structured data. Blocking AI crawlers across the board, this side argues, is like blocking search engines in the early years because they used some bandwidth.

The grey areas

Good and bad bots look alike in the logs at two in the morning. User agents can be faked. A rule that blocks a named AI crawler does nothing against a scraper pretending to be a browser, and a rule that challenges a whole country catches real customers too. Challenging by path, such as search and filter URLs, tends to work better than challenging by who claims to be asking.

Not every page wants the same answer. Product pages, guides and your about page are probably things you want read. Logged-in areas, internal search results, member directories and endless filter pages are things no bot of any kind needs.

llms.txt is a bet on where things are going. It's cheap to add and harmless when it's accurate. Nobody can show you yet that it changes much, though, and an auto-generated file that describes your site wrongly is worse than having none. If you add one, read it the way you'd read your homepage copy.

Your numbers are part of this. If you sell ads, featured listings or sponsorships, bot views inflate what you report. That's a trust problem with your customers, and it's separate from server load.

Then there's the question of whose job it is. On managed hosting, some of this belongs to the host. On a reseller or self-managed plan, it's yours or your agency's. Many owners only find out which one applies when the site is already down.

Where we lean

We start with caching and path rules before we block anything by name. Public pages cached at the edge, a challenge or rate limit on search, filter and cart URLs, logged-in areas kept out of reach. Then we look at what's left in the logs. If one crawler is still causing load after that, we throttle or block that one.

On most sites we look after, we let the main search and AI crawlers read public content, because being findable matters more to a small business than a slice of bandwidth. The exception is sites where the content is what people pay for. There we'd block AI training crawlers and say so plainly on the site. As for llms.txt, we'd add a short hand-written one on sites with clear key pages and skip the auto-generated kind, mostly because we've seen how wrong they can get.

We might be wrong about where this goes. Maybe every assistant ends up respecting these files and the owners who skipped them become invisible. Or maybe it fades like plenty of meta tags did before it.

Your turn

  1. If a crawler has ever taken your site down, was it one specific bot, or uncached pages that any bot would have found?
  2. Do you let AI crawlers read your public pages, and has that sent you any visitors or mentions you can actually see?
  3. For directory or ad-supported sites, how do you keep bot views out of the numbers you show customers?
  4. Has anyone measured a real difference after adding an llms.txt file, in either direction?
πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.