Medium impact

AI Ban Hammer

Industry news••2 min read

The author tried a method to block AI bots that ignore robots.txt by returning HTTP 402 responses. Readers should care because it shows a way to protect website content from unwanted crawling.

What happened

  • The author implemented a PHP script that added IP addresses of bots ignoring robots.txt to a .htaccess file and returned a 402 Payment Required response.
  • After about 24 hours the script caught a few bots, including one that identified itself as Meta operated.
  • The author stopped using this PHP solution because of security concerns and scalability issues.

How it works

  • Robots.txt is a convention that tells bots which parts of a site should not be accessed; the author disallowed the directory /badplace/.
  • Apache was configured to log IP addresses that request /badplace/ using a custom LogFormat and environment variable.
  • A RewriteMap loads the log file and checks each request; if the IP is listed, Apache returns a 402 error or optionally a 403 Forbidden.
  • The 402 response can show a custom message defined by ErrorDocument.

Who it affects

  • The method targets AI bots that ignore robots.txt, such as the author’s observed ChatGPT crawler.
  • It also captured some non‑AI bots, including a Chinese IP and various browsers pretending to be different user agents.
  • Bots that request only the blocked directory without other activity are also caught.

What is unclear

  • The article does not say how many total requests were blocked or the overall effectiveness of the method.
  • It does not provide exact performance impact on the server or any metrics on false positives.
  • The author mentions possible future HTTP codes like 469 but does not detail them.

What to watch next

  • The author hopes for a new HTTP status code (469 "Fuck off Clanker") but it does not exist yet.
  • They suggest that a human‑only internet might need key‑validation similar to old PGP signing, but acknowledge it is unlikely.
  • The author notes that despite the block, many bots still ignore robots.txt, so ongoing monitoring is needed.

Words explained

robots.txt
A text file that tells web crawlers which parts of a site they should not visit.
RewriteMap
An Apache feature that maps input values (like IP addresses) to actions for request handling.
.htaccess
A configuration file for Apache web server that can control access and other settings.

Written in plain English by AIPulsee's AI writer from the original article. Every number and name was checked automatically against it. How it runs.

Source: yunzi.co.uk

Questions readers ask

Why did the author stop using the PHP script?

The author did not want PHP and Apache‑PHP on the server after recent security holes, and feared DDOS attacks and huge .htaccess files.

How does the Apache configuration detect bots?

It sets an environment variable when a request targets /badplace/, logs the IPs to a file, and then uses a RewriteMap to return a 402 error for those IPs.

What response does the server give to blocked bots?

The server returns an HTTP 402 Payment Required status with a custom message, or optionally a 403 Forbidden status.

Reality check

An automated, sceptical read of the source

Incremental. The technique adapts existing Apache features rather than introducing new technology, offering a modest improvement over typical bot‑blocking methods.

Who it affectsDevelopersBusinessesEveryday users
Do you agree with this rating?

Is this a big deal?

Get stories like this every morning

The day's AI news in plain English, in your inbox at 8:30 IST. Free.

More AI news

Bosses who pushed AI at work are now drowning in "workslop"Industry news · 25 Nov 2026Drops for Nvidia, Anthropic and other AI stocks drag the markets back downAnthropic · 25 Nov 2026Always-on agent routing and permissions: dsh-superagent, Grok Bot, Claude DuetAnthropic · 25 Nov 2026AI employees sound alarm: models too powerful to ever releaseOpenAI · 25 Nov 2026OpenAI adds nine new mathematical manuscriptsOpenAI · 25 Nov 2026