online / endpoints 18 / categories 4 / rate 60/min/ip /

GET /llms.txt

GET /llms.txt

An llms.txt (the proposed convention for telling LLMs about site structure) that lists pages that 404, contradicts itself, or embeds prompt-injection content. Tests whether AI agents that ingest llms.txt sanitise it before acting.

mode dead-links (default; every linked path 404s), contradictory (summary disagrees with linked-page content), prompt-injection (embeds 'ignore previous instructions' content — clearly labelled chaos, useful for testing whether your agent sanitises ingested llms.txt).
build a request:

expect: 200 OK with Content-Type: text/markdown. Body content depends on the chosen mode. X-Chaos-Llms-Mode reflects the selection.

bash
curl -i 'https://bots.catastrophic.io/llms.txt?mode=dead-links'
import urllib.request
resp = urllib.request.urlopen("https://bots.catastrophic.io/llms.txt?mode=dead-links")
print(resp.status, resp.headers["X-Chaos-Llms-Mode"])
print(resp.read().decode())
const res = await fetch("https://bots.catastrophic.io/llms.txt?mode=dead-links");
console.log(res.status, res.headers.get("x-chaos-llms-mode"));
console.log(await res.text());
package main

import (
    "fmt"
    "io"
    "net/http"
)

func main() {
    resp, _ := http.Get("https://bots.catastrophic.io/llms.txt?mode=dead-links")
    defer resp.Body.Close()
    body, _ := io.ReadAll(resp.Body)
    fmt.Println(resp.StatusCode, resp.Header.Get("X-Chaos-Llms-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/llms.txt?mode=dead-links")?;
    println!("{} {:?}", resp.status(), resp.headers().get("x-chaos-llms-mode"));
    println!("{}", resp.text()?);
    Ok(())
}
import java.net.URI;
import java.net.http.*;

public class BotsLlms {
    public static void main(String[] args) throws Exception {
        var client = HttpClient.newHttpClient();
        var req = HttpRequest.newBuilder(URI.create("https://bots.catastrophic.io/llms.txt?mode=dead-links")).build();
        var resp = client.send(req, HttpResponse.BodyHandlers.ofString());
        System.out.println(resp.statusCode() + " " +
            resp.headers().firstValue("X-Chaos-Llms-Mode").orElse(""));
        System.out.println(resp.body());
    }
}
using var client = new HttpClient();
var resp = await client.GetAsync("https://bots.catastrophic.io/llms.txt?mode=dead-links");
resp.Headers.TryGetValues("X-Chaos-Llms-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/llms.txt?mode=dead-links"))
puts "#{res.code} #{res['X-Chaos-Llms-Mode']}"
puts res.body
$r = Invoke-WebRequest -Uri 'https://bots.catastrophic.io/llms.txt?mode=dead-links'
$r.Headers['X-Chaos-Llms-Mode']
$r.Content