Bots and crawlers (user agents) cheat sheet
Search engines
-
Googlebot
Google- robots.txt name
- Googlebot, plus Googlebot-Image, Googlebot-Video, and Googlebot-News
- Follows robots.txt
- Yes
- In the user agent string
- Googlebot/2.1
- Verification
- Reverse DNS to googlebot.com, google.com, or googleusercontent.com, then forward DNS
The Google Search crawler, in desktop and mobile versions. Blocking it in robots.txt stops Google from crawling your pages. Google also publishes the IP ranges of its crawlers in the common-crawlers.json file, so you can match IP addresses automatically.
-
Bingbot
Microsoft- robots.txt name
- bingbot
The crawler of the Bing search engine, operated by Microsoft.
-
Applebot
Apple- robots.txt name
- Applebot
- Follows robots.txt
- Yes, for search crawling
- Crawl-delay
- Not supported
- Verification
- Reverse DNS to applebot.apple.com, or the applebot.json IP list
The crawler for search in Apple products. When robots.txt has no rules for Applebot but has rules for Googlebot, Apple's crawler follows the Googlebot rules.
-
DuckDuckBot
DuckDuckGo- robots.txt name
- DuckDuckBot
- Follows robots.txt
- Yes
- In the user agent string
- DuckDuckBot/1.1
- Verification
- The duckduckbot.json IP list
The crawler of the DuckDuckGo search engine. The list of IP addresses it crawls from is published in the duckduckbot.json file on the DuckDuckGo website.
-
YandexBot
Yandex- robots.txt name
- YandexBot
- In the user agent string
- YandexBot/3.0
- Verification
- Reverse DNS to a name ending in yandex.ru, yandex.net, or yandex.com, then forward DNS
The main crawler of the Yandex search engine. The other Yandex crawlers have separate names, and all of them get a reverse DNS name under one of the three Yandex domains.
-
Baiduspider
Baidu- robots.txt name
- Baiduspider
- Follows robots.txt
- Yes, except Baiduspider-cpro and Baiduspider-ads
- In the user agent string
- Baiduspider/2.0
- Verification
- Reverse DNS to a name under baidu.com or baidu.jp, then forward DNS
The crawler of the Baidu search engine. Images, news, and videos have separate crawlers, such as Baiduspider-image and Baiduspider-video.
-
Amzn-SearchBot
Amazon- robots.txt name
- Amzn-SearchBot
- Follows robots.txt
- Yes
- Crawl-delay
- Not supported
- Verification
- An IP list published on the Amazon developer site
The crawler for search experiences in Amazon products and services. According to Amazon, it doesn't crawl to train AI models. When robots.txt has no rules for its name but allows other search engine bots, it follows their rules.
Controlling AI training use
-
Google-Extended
Token only, no crawler- robots.txt name
- Google-Extended
- Own user agent string
- None, crawling is done by the regular Google crawlers
- Effect on search
- Doesn't affect appearance or ranking in Google Search
A token used only in robots.txt that controls whether Google may use content it has already crawled to train its AI models and to ground their answers. Blocking it doesn't stop Googlebot.
-
Applebot-Extended
Token only, no crawler- robots.txt name
- Applebot-Extended
- Crawls pages
- No
- Effect on search
- Pages that block it can still appear in Apple search
A token that controls whether Apple may use content crawled by Applebot to train its foundation models. Apple notes that its rules aren't taken into account in search ranking.
AI service crawlers
-
GPTBot
OpenAI- robots.txt name
- GPTBot
- Purpose
- Content that may be used to train OpenAI models
- Follows robots.txt
- Yes
- Verification
- The gptbot.json IP list
Blocking GPTBot tells OpenAI not to use your site's content to train its models. The block doesn't affect OAI-SearchBot, so your site can still appear in ChatGPT search.
-
OAI-SearchBot
OpenAI- robots.txt name
- OAI-SearchBot
- Purpose
- Showing your site in ChatGPT search results
- Follows robots.txt
- Yes, changes take effect within about 24 hours
- Verification
- The searchbot.json IP list
The crawler that lets your site appear and be linked in ChatGPT search answers. According to OpenAI, a site that blocks it can still appear as a navigational link.
-
ChatGPT-User
OpenAI- Purpose
- Visiting a page when a user asks ChatGPT to
- Follows robots.txt
- The rules may not apply, because the visit is made at a user's request
- Verification
- The chatgpt-user.json IP list
It doesn't crawl your site automatically. Instead, it visits a specific page when a user asks ChatGPT a question or runs an action that needs the page.
-
ClaudeBot
Anthropic- robots.txt name
- ClaudeBot
- Purpose
- Collecting content that may be used to train Anthropic models
- Follows robots.txt
- Yes, including Crawl-delay
- Verification
- An IP list published on the Claude website
Anthropic recommends blocking its crawlers through robots.txt rather than by IP address, because blocking by IP doesn't guarantee a complete, lasting block. The rule is needed in the robots.txt file of every subdomain.
-
Claude-SearchBot
Anthropic- robots.txt name
- Claude-SearchBot
- Purpose
- Improving the accuracy of Claude search results
- Follows robots.txt
- Yes
Blocking it keeps your content out of the Claude search index and may reduce your site's visibility in search answers.
-
Claude-User
Anthropic- robots.txt name
- Claude-User
- Purpose
- Visiting a page when a user asks Claude a question
- Follows robots.txt
- Yes
Blocking it stops Claude from reading the page when a user asks it for information, and may reduce your site's visibility in user-initiated search.
-
PerplexityBot
Perplexity- robots.txt name
- PerplexityBot
- Purpose
- Showing and linking your site in Perplexity search results
- Follows robots.txt
- Yes, changes take effect within 24 hours at most
- Verification
- The perplexitybot.json IP list
According to Perplexity, the crawler doesn't collect content to train AI foundation models.
-
Perplexity-User
Perplexity- robots.txt name
- Perplexity-User
- Follows robots.txt
- Generally no, because the visit is made at a user's request
- Verification
- The perplexity-user.json IP list
Visits a page when a user asks a question in Perplexity, and links to the page in the answer. It isn't used to crawl the web or to collect training data.
-
meta-externalagent
Meta- robots.txt name
- meta-externalagent
- Purpose
- Training AI models and improving products by indexing content
- In the user agent string
- meta-externalagent/1.1
Meta instructs site owners to block its crawlers with a Disallow line in robots.txt, and notes that the change takes effect within 24 hours at most.
-
meta-externalfetcher
Meta- Purpose
- Fetching a specific link at a user's request, in Meta AI tools
- Follows robots.txt
- May bypass it, because the visit is made at a user's request
- In the user agent string
- meta-externalfetcher/1.1
It doesn't crawl your site automatically. Instead, it fetches a link that a user asked for in Meta AI tools.
-
Amazonbot
Amazon- robots.txt name
- Amazonbot
- Purpose
- Improving Amazon products and services, and may also be used to train AI models
- Follows robots.txt
- Yes, without Crawl-delay support
- Verification
- An IP list published on the Amazon developer site
Amazonbot also honors the robots meta tag with the noarchive value. For user-initiated actions, such as questions to Alexa, a separate bot named Amzn-User is used, and it may not follow all robots.txt rules.
-
CCBot
Common Crawl- robots.txt name
- CCBot
- In the user agent string
- CCBot/2.0
- Verification
- Reverse DNS to a name under crawl.commoncrawl.org, or the ccbot.json IP list
The crawler of Common Crawl, an organization that publishes an open archive of web crawls. Common Crawl instructs site owners to block it with a Disallow line in robots.txt, and warns that other crawlers impersonate CCBot. IPv6 addresses don't have reverse DNS yet, so they're verified against the IP list.
Link previews
-
facebookexternalhit
Meta- Purpose
- Title, description, and image for a link shared in Meta apps
- Follows robots.txt
- Not always, for example in security checks
- In the user agent string
- facebookexternalhit/1.1
Visits the page when someone shares a link to your site, and builds the preview from it. Blocking it may leave the shared link without a title and image.
-
Slackbot-LinkExpanding
Slack- Purpose
- Preview of a link sent in Slack
- Follows robots.txt
- No, according to Slack
- In the user agent string
- Slackbot-LinkExpanding 1.0
Visits the page when someone shares a link in a Slack conversation, and shows the page title and description.
No matching crawlers.
robots.txt, verification, and blocking bots
robots.txt rules
-
User-agent: * Allow: /Allows all crawlers to crawl the whole site. When no rule matches a URL, crawling is allowed anyway.
-
User-agent: * Disallow: /Blocks the whole site for all crawlers, including search engines. Caution: use it only on a staging site. On a live site, it takes your pages out of crawling.
-
User-agent: * Disallow: /admin/Blocks a folder and everything in it. Matching is done by the start of the path, and the path is case-sensitive.
-
User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.phpBlocks a folder and allows one file inside it. When several rules match, the longest, most specific rule wins, and in a tie between Allow and Disallow, Allow wins.
-
User-agent: * Disallow: /*.pdf$Blocks all PDF files. The asterisk matches any sequence of characters, and the $ sign marks the end of the URL.
-
User-agent: * Disallow: /*?Blocks URLs with parameters, for example sorting and filtering pages that create many URLs for the same content.
-
User-agent: GPTBot User-agent: ClaudeBot Disallow: /One group for several crawlers: all the User-agent lines above the rules share them.
-
User-agent: GPTBot User-agent: ClaudeBot User-agent: Google-Extended User-agent: Applebot-Extended User-agent: CCBot User-agent: meta-externalagent Disallow: /Blocks the tokens used for training AI models, without blocking Googlebot, Bingbot, or the search crawlers of AI services, such as OAI-SearchBot and Claude-SearchBot.
-
User-agent: Googlebot Disallow: /search/ User-agent: * Disallow: /tmp/A crawler that has a group with its name follows only its own group and ignores the asterisk group. In this example, Googlebot may crawl /tmp/, so a rule needed for all crawlers is also written in the Googlebot group.
-
Sitemap: https://example.com/sitemap.xmlPoints search engines to your sitemap. Write a full URL. You can include several Sitemap lines in the file.
-
User-agent: ClaudeBot Crawl-delay: 1Asks for a delay between requests. The directive isn't part of the RFC 9309 standard, and some crawlers ignore it, for example Googlebot, Applebot, and Amazonbot. ClaudeBot supports it.
-
curl -s https://example.com/robots.txtShows the robots.txt file that your site actually serves. The file must be in the site root, named robots.txt in lowercase, encoded in UTF-8, and served with the text/plain content type.
Hiding pages from search results
-
<meta name="robots" content="noindex">A tag in the head of the page that asks search engines not to show the page in results. For the tag to work, the page must not be blocked in robots.txt, otherwise the crawler doesn't see the tag.
-
<FilesMatch "\.pdf$"> Header set X-Robots-Tag "noindex" </FilesMatch>Sends the X-Robots-Tag header for PDF files from an .htaccess file. The header suits files that aren't HTML, such as PDFs and images, and requires the mod_headers module.
-
location ~* \.pdf$ { add_header X-Robots-Tag "noindex"; }The same header in Nginx. An add_header directive in a location block cancels the add_header directives defined at the level above it, so also copy into the block any headers that should be sent with these files.
Verifying a real bot
-
host 66.249.66.1A reverse DNS lookup for the IP address from the log. For a Google bot, the returned name ends in googlebot.com, google.com, or googleusercontent.com.
Example:
1.66.249.66.in-addr.arpa domain name pointer crawl-66-249-66-1.googlebot.com. -
host crawl-66-249-66-1.googlebot.comA forward DNS lookup for the returned name. The bot is genuine only when the returned address matches the address you checked in the previous command.
Example:
crawl-66-249-66-1.googlebot.com has address 66.249.66.1 -
dig -x 66.249.66.1 +shortA reverse DNS lookup with the dig command, which shows only the name.
Example:
crawl-66-249-66-1.googlebot.com.
Blocking by user agent on the server
-
BrowserMatchNoCase "(BadBot|EvilScraper)" bad_bot <RequireAll> Require all granted Require not env bad_bot </RequireAll>Blocks bots in Apache, in an .htaccess file, by user agent string, case-insensitively, and returns a 403 code. In an .htaccess file, this requires AllowOverride FileInfo AuthConfig. Replace BadBot and EvilScraper with the bot names. The block stops only bots that identify themselves by name, because a user agent is easy to fake.
-
<RequireAll> Require all granted Require not ip 203.0.113.0/24 </RequireAll>Blocks an IP address range in Apache. Suits a bot you spotted in the logs that pretends to be a browser or a well-known bot.
-
map $http_user_agent $bad_bot { default 0; "~*(badbot|evilscraper)" 1; }Defines a variable in Nginx that marks bots by user agent. The map directive goes in the http block only, and ~* performs a case-insensitive match.
-
if ($bad_bot) { return 403; }Blocks the requests marked by the map setting in Nginx. It goes in the server block, and after the change, test the configuration with nginx -t before reloading.
-
curl -I -A "BadBot" https://example.com/Sends a request with the user agent of the blocked bot, to confirm that the block returns 403 and that regular visitors aren't blocked.
Example:
HTTP/2 403
Bots in server logs
-
grep -i "googlebot" /var/log/nginx/access.log | tail -n 20Shows the last 20 requests with Googlebot in the user agent. In Apache, the log is usually at /var/log/httpd/access_log or /var/log/apache2/access.log.
-
awk -F'"' '{print $6}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head -n 20Shows the 20 user agent strings with the most requests. Suits a log in the combined format, where the user agent is the last quoted field.
-
grep -i "gptbot" /var/log/nginx/access.log | awk '{print $1}' | sort | uniq -c | sort -rn | headShows the IP addresses that sent requests as GPTBot, sorted by number of requests. Compare the addresses with the IP list of the bot to spot impersonators.
-
grep -ci "claudebot" /var/log/nginx/access.logCounts the requests with ClaudeBot in the user agent.
-
tail -f /var/log/nginx/access.log | grep -i --line-buffered "bot"Shows bot requests in real time, for any user agent string that contains the word bot. Stop with Ctrl+C.
No matching rules and commands.
What to know about robots.txt and bots
- robots.txt isn't a security measure: under the RFC 9309 standard, the rules in the file aren't a form of access authorization, and anyone who reads the file sees the paths listed in it. Protect a private area with a password, not with a Disallow line.
- Disallow doesn't remove a page from search: a blocked page can still appear in results when other sites link to it. To hide a page, leave it open to crawling and add noindex to it.
- A user agent is easy to fake: anyone can send a request as Googlebot. Before blocking or allowlisting an address, verify the bot with reverse DNS and forward DNS, or against the IP list its owner publishes. You can break down a user agent string from your log with the user agent parser tool.
- Load from bots: blocking by user agent stops only bots that identify themselves by name. For a bot that floods your site with requests, use rate limiting on the server, for example the limit_req directive, explained in the Nginx cheat sheet, or block addresses automatically with fail2ban.
- The llms.txt file: a new proposed convention in which you place a Markdown file in the site root with a summary of the site and links to its important content, for use by AI tools. The file isn't part of the robots.txt standard and doesn't control what may be crawled.
The domain example.com, the IP addresses, and the bot names BadBot and EvilScraper are examples, so replace them with your real values. You can learn about the headers that a bot sends and receives on the HTTP headers page.
With our web hosting plans, a firewall, a WAF, and DDoS protection help protect your site at the server level. On a Linux VPS, you connect over SSH with full root access and set up blocking and rate limiting in the web server yourself.
Bots and crawlers FAQ
How do I block AI crawlers without affecting how my site appears in Google?
In robots.txt, use a Disallow line to block only the tokens used for training models, such as GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, and CCBot, and leave Googlebot alone. Google states that Google-Extended doesn't affect appearance or ranking in Google Search. The search crawlers of AI services, such as OAI-SearchBot and Claude-SearchBot, stay open, so your site can keep appearing in their search answers too.
How can I tell whether a Googlebot visiting my site is genuine?
Check the IP address from the log with the host command. For a genuine bot, the result is a name ending in googlebot.com, google.com, or googleusercontent.com, and a second lookup of that name returns the same IP address. You can also compare the address with the IP list that Google publishes. The same method works for Applebot and other bots too, each with the domain or IP list of its owner.
What's the difference between Disallow in robots.txt and noindex?
Disallow asks the crawler not to crawl the page, but the page can still appear in search results when other sites link to it. noindex asks search engines not to show the page in results, and for the crawler to see it, the page must stay open to crawling. So to hide a page from search, use noindex and don't block the page in robots.txt.
Do all bots follow robots.txt?
The major search engine crawlers and most AI crawlers document that they follow robots.txt. Bots that visit a page at a user's request, such as ChatGPT-User and Perplexity-User, and link preview bots may not follow the file. For a bot that ignores the rules or impersonates another bot, block it on the server by IP address or limit its request rate.
How do I see which bots are crawling my site?
The access log of your web server records the user agent string of every request. With the grep and awk commands on this page, you can sort the strings by number of requests, filter a specific bot, and see which IP addresses it came from. This way, you can spot bots that create load and confirm that bots identifying themselves as search engines are genuine.