How to add llms.txt to Squarespace
Squarespace doesn't allow root-file uploads. Use a URL mapping + a stripped page, or front the domain with Cloudflare for full header control.
Before you start
- ✓Business plan or higher (for URL mappings)
- ✓Site admin access
- ✓Optional: Cloudflare account for the most reliable approach
Install in 4 steps
- 1
Create a page with slug 'llms-txt'
Use a blank layout. Paste your Markdown into a code block.
- 2
Add a URL mapping
Settings → Advanced → URL Mappings: '/llms.txt -> /llms-txt 301'.
- 3
Strip the chrome
Apply a custom CSS rule that hides header/footer for this page (.collection-llms-txt header, .collection-llms-txt footer { display:none }).
- 4
Verify
Fetch with curl. If Squarespace still wraps it in HTML, route through Cloudflare and rewrite the response.
Troubleshooting
Squarespace returns text/html for everything. Front the domain with a Cloudflare Worker that rewrites Content-Type to text/plain.
Personal plans don't support URL mappings. Upgrade to Business or set up Cloudflare in front.
Common gotchas
- • Squarespace returns text/html for everything — Cloudflare Workers can rewrite to text/plain
- • Personal plans don't support URL mappings — upgrade or use Cloudflare
Generate your llms.txt in 30 seconds
Use the free OptimAIze generator, then follow the steps above to deploy on Squarespace.
Frequently asked questions
Does Squarespace need both llms.txt and robots.txt?
Yes. robots.txt grants crawler permission; llms.txt curates which pages matter. Together they form the minimum AI-search setup on any Squarespace site.
Will adding llms.txt slow down my site?
No. It's a tiny static text file fetched once and cached aggressively. Page-load impact is effectively zero.
How often should I update llms.txt?
Whenever your canonical content set changes — new docs section, new product line, new pricing page. A monthly review is a sensible cadence for most sites.
Can I see whether AI engines read my llms.txt?
Check your server logs for user agents like GPTBot, ClaudeBot, PerplexityBot, and Google-Extended hitting /llms.txt. Most sites see traffic within days of publishing.
Other platforms
Understanding llms.txt for Squarespace Sites
The `llms.txt` file serves as a crucial instruction set for Large Language Models (LLMs) and other generative AI systems, guiding them on how to interact with your website's content. Similar to `robots.txt` for search engine crawlers, `llms.txt` specifies which parts of your Squarespace site are permissible for data collection, training, or citation within AI-generated responses. For Squarespace users, direct root directory access is limited, requiring a creative approach to host and reference this file. Correct implementation ensures that your valuable content is either appropriately leveraged by AI or protected as intended, maintaining control over your digital assets' use in the evolving AI landscape. Ignoring this can lead to content misuse or missed visibility opportunities.
Squarespace-Specific Implementation Challenges and Solutions
Squarespace's managed hosting environment prevents direct SFTP or cPanel access to the root directory, which is the standard location for `llms.txt`. To circumvent this, Squarespace users can host their `llms.txt` file externally on a platform like GitHub Gist or Google Drive, ensuring it's publicly accessible with a stable URL. The next step involves embedding a `<link>` tag within your Squarespace site's header code injection area. This tag, referencing the external `llms.txt` URL, signals to compliant LLMs where to find your directives. While not a direct root placement, this method is recognized by AI visibility protocols and effectively communicates your preferences to AI models interacting with your site.
Optimizing Your llms.txt Directives for Squarespace Content
Beyond simply hosting the file, the content of your `llms.txt` itself is critical. Use clear, concise directives such as `User-agent: *` to target all LLMs, followed by `Allow:` or `Disallow:` rules for specific paths or content types. For instance, `Disallow: /private/` might prevent AI from scraping sensitive information, while `Allow: /blog/` explicitly permits AI to cite your blog posts. Regularly review your Squarespace site structure for changes that might necessitate updates to your `llms.txt` directives. Proper optimization ensures your content contributes positively to AI-driven answers, enhancing your site's discoverability and authority while respecting your content usage preferences in generative AI contexts.
Key llms.txt Directives for Squarespace
| Directive | Purpose | Squarespace Context |
|---|---|---|
| User-agent: * | Applies rules to all LLMs/AI crawlers. | Essential for broad AI visibility control on any Squarespace site. |
| Allow: /blog/ | Permits AI to access and cite specified content paths. | Crucial for ensuring your Squarespace blog posts appear in AI answers. |
| Disallow: /admin/ | Blocks AI access to specific site sections. | Prevents AI from scraping Squarespace backend or sensitive pages. |
| Crawl-delay: 10 | Requests a delay between AI requests. | Less critical for LLMs, but can manage server load on large Squarespace sites if AI becomes aggressive. |
| LLM-index: noindex | Instructs LLMs not to index content. | Useful for Squarespace pages you want visible to users but excluded from AI training data or citations. |
Squarespace llms.txt Setup Checklist
- Create your `llms.txt` file with desired directives.
- Host the `llms.txt` file externally (e.g., GitHub Gist, Google Drive) making it publicly accessible.
- Copy the direct, raw URL of your hosted `llms.txt` file.
- Navigate to 'Settings > Developer Tools > Code Injection' in your Squarespace site.
- Paste the `<link rel="llm" href="YOUR_LLMS_TXT_URL">` tag into the header section, replacing the placeholder.
- Test the URL and the link tag to ensure it correctly points to your `llms.txt` file.
Guide to Publishing llms.txt on Squarespace
- 1Craft Your Directives
Begin by writing the content for your `llms.txt` file, specifying `User-agent` rules and `Allow`/`Disallow` paths relevant to your Squarespace site's structure. Focus on clarity and precision to guide AI models effectively.
- 2External Hosting
Since Squarespace doesn't allow root file uploads, upload your `llms.txt` to a reliable external service that provides a permanent, public URL. GitHub Gist is a popular choice for this purpose due to its stability and ease of access.
- 3Embed the Link
Access your Squarespace website's 'Code Injection' area, usually found under 'Settings' and 'Developer Tools'. Insert a `<link rel="llm" href="YOUR_EXTERNAL_URL_HERE">` tag within the 'Header' section, replacing the placeholder with the direct URL to your hosted `llms.txt` file.
- 4Verify and Monitor
After saving the code injection, it's crucial to verify that the link is correctly implemented and accessible. Use your browser's developer tools to inspect the page header and confirm the `<link>` tag points to your `llms.txt` without errors. Periodically check your directives for continued relevance.
More questions answered
- Why can't I just upload llms.txt directly to Squarespace?
- Squarespace operates as a closed CMS environment, meaning users do not have direct access to the website's root directory via SFTP or cPanel. This design choice simplifies site management for users but necessitates alternative methods for files like `llms.txt` that traditionally reside at the root.
- What's the best external service to host my llms.txt for Squarespace?
- GitHub Gist is widely recommended due to its reliability, public accessibility, and ability to provide a raw, stable URL for text files. Other options include Google Drive with public sharing enabled, or dedicated file hosting services, ensuring the URL remains consistent and accessible without authentication.
- How do I ensure LLMs actually read my Squarespace llms.txt?
- By using the `<link rel="llm" href="..." >` tag in your Squarespace site's header, you explicitly signal to compliant LLMs and AI crawlers where to find your directives. Major AI systems are designed to look for this tag, making it the recognized standard for communicating your content preferences.
- Will an llms.txt file affect my regular Google Search ranking?
- No, an `llms.txt` file is specifically designed for Large Language Models and generative AI systems. It operates independently of your `robots.txt` file, which governs traditional search engine crawlers like Googlebot. Therefore, your `llms.txt` directives will not directly impact your Google Search visibility.
Explore further
Connected guides to keep going — short reads, all internally linked.