Skip to main content

Basic Examples

Simple Blog - No AI Training

A personal blog that wants to allow search indexing but block AI training:

Open Source Documentation

Documentation site that welcomes AI training for educational purposes:

News Website - Selective AI Use

A news site that allows search indexing and generative synthesis but blocks training:

Advanced Examples

E-commerce Site with Premium Content

An online store with different policies for public and premium content:

Educational Institution

A university website with different policies for different content types:

Creative Portfolio

An artist’s portfolio with selective AI permissions:

Corporate Website

A company website with different policies for public and internal content:

Agent-Specific Examples

OpenAI-Friendly Configuration

A site that specifically allows OpenAI’s crawlers:

Research-Focused Configuration

A site that prioritizes research and academic use:

Selective Agent Blocking

A site that blocks specific AI agents while allowing others:

Path-Based Examples

Content Type Segmentation

Different policies for different content types:

Geographic Content Policies

Different policies for different regions:

Complex Scenarios

Multi-Tenant Platform

A platform serving multiple clients with different policies:

Time-Based Policies

Policies that change based on content age:

Verification Examples

With Cryptographic Verification

Advanced implementation with verification challenges:

Testing Your Implementation

Validation Checklist

Before deploying your llmtag.txt file:
1

Check file accessibility

Verify your file is accessible at https://yourdomain.com/llmtag.txt
2

Validate syntax

Ensure all directives follow the correct format and syntax
3

Test with different agents

Use different user-agent strings to test agent-specific rules
4

Verify path matching

Test that path-based rules work correctly for different URLs
5

Check inheritance

Confirm that inheritance works as expected for unspecified directives

Common Mistakes to Avoid

Missing spec_version: Always include spec_version: 3.0 at the top of your file.
Incorrect user-agent strings: Use the exact user-agent string reported by the AI agent, not partial matches.
Path syntax errors: Use forward slashes for paths and ensure proper prefix matching.
Conflicting directives: Be careful with inheritance - more specific rules override global ones.