Free Tools/Robots.txt Generator

Robots.txt Generator

Generate a robots.txt for your hotel website. Toggle which AI crawlers to allow or block. Controls whether ChatGPT, Claude, Perplexity, and other AI engines can access and cite your content.

Quick Presets

Slows down aggressive crawlers. Useful for hotels on shared hosting where crawling impacts booking engine performance. Supported by Bing and Yandex.

AI Crawlers

Allow AI engines to crawl and cite your hotel, or block them to prevent AI training on your content. Bots marked "citation" fetch pages in real-time when users ask questions. Bots marked "training" crawl to build AI model training data.

GPTBotGPTBottraining

OpenAI's crawler for ChatGPT training

Allow

ChatGPT-UserChatGPT-Usercitation

OpenAI's user-triggered fetcher (real-time citations)

Allow

OAI-SearchBotOAI-SearchBotcitation

OpenAI search crawler (powers SearchGPT)

Allow

ClaudeBotClaudeBottraining

Anthropic's crawler for Claude training

Allow

Claude-WebClaude-Webcitation

Anthropic's web fetcher (real-time citations)

Allow

anthropic-aianthropic-aitraining

Anthropic's AI agent crawler

Allow

CCBotCCBottraining

Common Crawl (used by many AI models for training)

Allow

Google-ExtendedGoogle-Extendedtraining

Controls Google AI training (Gemini, AI Overviews)

Allow

PerplexityBotPerplexityBottraining

Perplexity AI crawler (training)

Allow

Perplexity-UserPerplexity-Usercitation

Perplexity user-triggered fetcher (real-time citations)

Allow

AmazonbotAmazonbottraining

Amazon crawler (used for Alexa/AI)

Allow

BytespiderBytespidertraining

ByteDance crawler (TikTok AI training)

Allow

Applebot-ExtendedApplebot-Extendedtraining

Apple AI training crawler (Apple Intelligence)

Allow

cohere-aicohere-aitraining

Cohere AI crawler

Allow

Meta-ExternalAgentMeta-ExternalAgenttraining

Meta AI crawler (training)

Allow

meta-externalfetchermeta-externalfetchertraining

Meta link preview and fetcher

Allow

Search Engines

All crawlers (default)

Base rules for all user agents

Allow

Googlebot

Google's web crawler

Allow

Bingbot

Microsoft Bing crawler

Allow

DuckDuckBot

DuckDuckGo crawler

Allow

YandexBot

Yandex crawler

Allow

Baiduspider

Baidu crawler

Allow

Social Media Link Previews

Facebook

Facebook link preview

Allow

Twitter/X

Twitter link preview

Allow

LinkedIn

LinkedIn link preview

Allow

Slack

Slack link preview

Allow
robots.txt
# Generated by HotelSignal robots.txt generator
# https://hotelsignal.com/tools/robots-txt-generator

User-agent: *
Disallow: /admin
Disallow: /api
Disallow: /private

User-agent: GPTBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: Claude-Web
Allow: /

User-agent: anthropic-ai
Allow: /

User-agent: CCBot
Allow: /

User-agent: Google-Extended
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Perplexity-User
Allow: /

User-agent: Amazonbot
Allow: /

User-agent: Bytespider
Allow: /

User-agent: Applebot-Extended
Allow: /

User-agent: cohere-ai
Allow: /

User-agent: Meta-ExternalAgent
Allow: /

User-agent: meta-externalfetcher
Allow: /

Test a URL path

Check if a specific URL on your hotel site would be allowed or blocked by these rules.

Upload this file to the root of your website (e.g., https://your-hotel.com/robots.txt).

Why block (or allow) AI bots for your hotel?

AI bots like GPTBot, ClaudeBot, and CCBot crawl the web to train Large Language Models. For hotels, the decision to allow or block is more nuanced than for other businesses:

AI citations drive direct bookings

When a traveler asks ChatGPT "best hotel in Marrakech for a honeymoon," the AI names 3 to 5 properties. If your hotel is cited, the traveler may visit your site directly, bypassing OTAs and their 15 to 25 percent commission. Allowing AI citation bots (like ChatGPT-User and Perplexity-User) enables this.

Training vs. citation: the key distinction

Training bots (GPTBot, ClaudeBot, CCBot) crawl to build model training data. Citation bots (ChatGPT-User, Perplexity-User, OAI-SearchBot) fetch pages in real-time when a user asks a question. Many hotels want citations but not training. Use the "AI Citations Only" preset for this.

Bandwidth and server load

AI crawlers can be aggressive, especially on hotel sites with many room pages, blog posts, and image galleries. If your site is on shared hosting, consider using crawl-delay or blocking the most aggressive training crawlers to protect booking engine performance.

Robots.txt vs Meta Robots Tag

robots.txt

  • Controls crawling access: which bots can fetch pages
  • Site-wide rules in a single file
  • Cannot prevent indexing. Blocked pages can still appear in search results
  • Cannot control link following (nofollow)
  • Hotel example: block /admin/, /api/, /booking/checkout

Meta Robots Tag

  • Controls indexing: noindex removes pages from search results
  • Per-page control with nofollow, nosnippet, noimageindex
  • Requires the bot to crawl the page first to read the tag
  • Must be added to every page individually
  • Hotel example: noindex seasonal promo pages, old event pages

Best practice: Use robots.txt to block crawling of entire sections (admin, staging, API endpoints). Use meta robots to control indexing of individual pages. For complete removal from search results, allow crawling (so the bot reads your noindex tag) but set<meta name="robots" content="noindex">on the page.

Common robots.txt mistakes for hotel websites

Blocking CSS/JS files

Disallowing /assets/ or /_next/ or /static/ prevents Google from rendering your page. Google needs these resources to understand your layout, booking widgets, and image galleries. Never block CSS/JS paths in robots.txt.

Using robots.txt to hide pages

Blocking a URL in robots.txt doesn't remove it from search results. Google can still index it based on links from other sites, OTAs, or travel blogs. Use the noindex meta tag instead for pages you want removed from search results.

Blocking AI citation bots accidentally

Many hotels block "all AI bots" thinking it only stops training. But this also blocks ChatGPT-User and Perplexity-User, which means AI engines cannot cite your hotel in real-time answers. Use the "AI Citations Only" preset to allow citations while blocking training.

Missing sitemap directive

Always include a Sitemap: line pointing to your XML sitemap. This is the simplest way to help search engines discover all your hotel pages, including room types, packages, and blog posts.

Frequently asked questions

Should my hotel allow ChatGPT to crawl our site?
Yes, if you want ChatGPT to recommend and cite your hotel in answers to travel questions. Allow ChatGPT-User (the real-time fetcher) so ChatGPT can read your pages when a traveler asks about hotels in your area. You can block GPTBot (the training crawler) separately if you don't want your content used for model training.
How do I protect my booking engine from aggressive crawlers?
Block paths like /booking/checkout, /reservation, and /api in your robots.txt. You can also set a crawl-delay (e.g. 10 seconds) to slow down crawlers that support it, like Bing and Yandex. For maximum protection, use server-side rate limiting in addition to robots.txt, since not all crawlers respect crawl-delay directives.
What's the ideal robots.txt for a hotel that wants AI citations but not training?
Use the "AI Citations Only" preset above. This allows ChatGPT-User, Perplexity-User, OAI-SearchBot, and Claude-Web (real-time citation bots) while blocking GPTBot, ClaudeBot, CCBot, Google-Extended, and other training crawlers. Search engines and social previews remain fully allowed.
Can I allow Google AI Overviews but block ChatGPT?
Yes. Google AI Overviews uses Google's regular search index, so allowing Googlebot covers it. To control AI training specifically, use Google-Extended (blocks Gemini training but keeps Google Search). To block ChatGPT, block both GPTBot and ChatGPT-User. This gives you AI visibility in Google AI Overviews while preventing ChatGPT from accessing your content.
What is the difference between GPTBot and ChatGPT-User?
GPTBot crawls the web to build OpenAI's training data. ChatGPT-User fetches pages in real-time when a user asks ChatGPT a question. If you want ChatGPT to cite your hotel in answers but don't want your content used for training, allow ChatGPT-User and block GPTBot.
Where do I put my robots.txt file?
Upload robots.txt to the root directory of your website. It must be accessible at https://your-hotel.com/robots.txt. Search engines and AI crawlers will fetch it before crawling your site.
What is Google-Extended?
Google-Extended is a specific user agent that controls whether your content is used to train Google's AI models (Gemini, AI Overviews). Blocking it prevents your content from being used for AI training but does not affect regular Google Search indexing.