GET /.well-known/ai.txt
An ai.txt — the AI-scraping equivalent of robots.txt — that contradicts itself, references AI bots that don't exist, or returns malformed directives.
mode
contradictory (default; Allow and Disallow for the same path on GPTBot/ClaudeBot/etc.), fake-bots (User-Agent names that aren't real AI crawlers), malformed (missing colons, invalid values).
build a request:
expect: 200 OK with Content-Type: text/plain. Body content depends on the chosen mode. X-Chaos-Ai-Txt-Mode reflects the selection.
curl -i 'https://bots.catastrophic.io/.well-known/ai.txt?mode=contradictory'
import urllib.request
resp = urllib.request.urlopen("https://bots.catastrophic.io/.well-known/ai.txt?mode=contradictory")
print(resp.status, resp.headers["X-Chaos-Ai-Txt-Mode"])
print(resp.read().decode())
const res = await fetch("https://bots.catastrophic.io/.well-known/ai.txt?mode=contradictory");
console.log(res.status, res.headers.get("x-chaos-ai-txt-mode"));
console.log(await res.text());
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
resp, _ := http.Get("https://bots.catastrophic.io/.well-known/ai.txt?mode=contradictory")
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(resp.StatusCode, resp.Header.Get("X-Chaos-Ai-Txt-Mode"))
fmt.Println(string(body))
}
// Cargo.toml: reqwest = { version = "0.12", features = ["blocking"] }
fn main() -> Result<(), Box> {
let resp = reqwest::blocking::get("https://bots.catastrophic.io/.well-known/ai.txt?mode=contradictory")?;
println!("{} {:?}", resp.status(), resp.headers().get("x-chaos-ai-txt-mode"));
println!("{}", resp.text()?);
Ok(())
}
import java.net.URI;
import java.net.http.*;
public class BotsAiTxt {
public static void main(String[] args) throws Exception {
var client = HttpClient.newHttpClient();
var req = HttpRequest.newBuilder(URI.create("https://bots.catastrophic.io/.well-known/ai.txt?mode=contradictory")).build();
var resp = client.send(req, HttpResponse.BodyHandlers.ofString());
System.out.println(resp.statusCode() + " " +
resp.headers().firstValue("X-Chaos-Ai-Txt-Mode").orElse(""));
System.out.println(resp.body());
}
}
using var client = new HttpClient();
var resp = await client.GetAsync("https://bots.catastrophic.io/.well-known/ai.txt?mode=contradictory");
resp.Headers.TryGetValues("X-Chaos-Ai-Txt-Mode", out var mode);
Console.WriteLine($"{(int)resp.StatusCode} {mode?.FirstOrDefault()}");
Console.WriteLine(await resp.Content.ReadAsStringAsync());
require "net/http"
res = Net::HTTP.get_response(URI("https://bots.catastrophic.io/.well-known/ai.txt?mode=contradictory"))
puts "#{res.code} #{res['X-Chaos-Ai-Txt-Mode']}"
puts res.body
$r = Invoke-WebRequest -Uri 'https://bots.catastrophic.io/.well-known/ai.txt?mode=contradictory'
$r.Headers['X-Chaos-Ai-Txt-Mode']
$r.Content
headers
body