English

ai.txt: A Domain-Specific Language for Guiding AI Interactions with the Internet

Networking and Internet Architecture 2025-05-14 v1 Artificial Intelligence Cryptography and Security Programming Languages

Abstract

We introduce ai.txt, a novel domain-specific language (DSL) designed to explicitly regulate interactions between AI models, agents, and web content, addressing critical limitations of the widely adopted robots.txt standard. As AI increasingly engages with online materials for tasks such as training, summarization, and content modification, existing regulatory methods lack the necessary granularity and semantic expressiveness to ensure ethical and legal compliance. ai.txt extends traditional URL-based access controls by enabling precise element-level regulations and incorporating natural language instructions interpretable by AI systems. To facilitate practical deployment, we provide an integrated development environment with code autocompletion and automatic XML generation. Furthermore, we propose two compliance mechanisms: XML-based programmatic enforcement and natural language prompt integration, and demonstrate their effectiveness through preliminary experiments and case studies. Our approach aims to aid the governance of AI-Internet interactions, promoting responsible AI use in digital ecosystems.

Keywords

Cite

@article{arxiv.2505.07834,
  title  = {ai.txt: A Domain-Specific Language for Guiding AI Interactions with the Internet},
  author = {Yuekang Li and Wei Song and Bangshuo Zhu and Dong Gong and Yi Liu and Gelei Deng and Chunyang Chen and Lei Ma and Jun Sun and Toby Walsh and Jingling Xue},
  journal= {arXiv preprint arXiv:2505.07834},
  year   = {2025}
}