Skip to main content

PerplexityBot and Perplexity-User: robots.txt

Two agents, different rules: what robots.txt controls, what it does not, how to verify from your logs who really visits and what Cloudflare reported in 2025.

What do you think about this article?

PerplexityBot and Perplexity-User: robots.txt
Perplexityfedericocalo.dev

At a Glance

Two agents, different rules: what robots.txt controls, what it does not, how to verify from your logs who really visits and what Cloudflare reported in 2025.

Short answer. Perplexity declares two different agents with different rules. PerplexityBot builds the search results, honors robots.txt, and the documentation recommends allowing it if you want to appear. Perplexity-User visits a page because a person asked a question, and according to the documentation it generally ignores robots.txt, since the request is the user's. The two settings are independent and changes may take up to 24 hours. It follows that robots.txt controls the first agent and not the second: to limit the second you need server-side controls. And there is a limit no configuration solves: in August 2025 Cloudflare documented traffic attributed to Perplexity with an undeclared identity, so what you can verify is what your logs show, not what the file promises.

Verified on 30 October 2026

The agent descriptions, User-Agent strings and behavior with respect to robots.txt come from the official "Bots" page of the documentation, which carries no date or document version (the "1.0" in the strings may change). The Cloudflare report is dated 4 August 2025. I have not measured the crawler's current behavior on any site: I cannot say whether what Cloudflare reported repeats today.

The two agents, as declared

PerplexityBotPerplexity-User
What it is for (declared)Surfacing and linking sites in search results; not used to collect content for training foundation modelsUser-initiated actions: when a person asks a question it may visit a page to answer and link it; not used for crawling or training
User-AgentMozilla/5.0 (compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot)Mozilla/5.0 (compatible; Perplexity-User/1.0; +https://perplexity.ai/perplexity-user)
IP rangeshttps://www.perplexity.ai/perplexitybot.jsonhttps://www.perplexity.ai/perplexity-user.json
robots.txtHonored; allowing it is recommendedGenerally ignored, because the request is the user's

Mind who is declaring what: "not used for training" is a statement by the vendor. There is no way to verify it from outside; you can count it as a public commitment, not an established fact. Source: docs.perplexity.ai, Bots, 30 October 2026.

What to write in robots.txt, and what it produces

The four reasonable combinations:

ChoiceDirectivesExpected effect (from the documentation)
Allow everythingUser-agent: PerplexityBot + Allow: /; no rule for Perplexity-UserYou can appear in results; user-triggered visits are not blocked
Block only the indexUser-agent: PerplexityBot + Disallow: /You are not part of the search index built by that agent; a person pasting your URL can still trigger a visit
Block both in robots.txtDisallow: / for bothThe first honors it; the second, per the documentation, generally does not: the ban on Perplexity-User is only declarative
Really block Perplexity-UserWAF or server rule combined with User-Agent and IP rangesEffective block, within the limits of identification (below)

An uncomfortable truth about the directives: the file this site publishes for the two agents is Allow: / for both, with an extra Crawl-delay: 5 for PerplexityBot. Crawl-delay is not part of the robots.txt standard (RFC 9309), and in the documentation I read there is no statement that PerplexityBot honors it. That line is a hope, not a control: I write it because it costs nothing, but I do not count it among the protections.

What is verifiable: your logs

The only independent check is to look at who knocked. The method: classify each log line by User-Agent, then check whether the IP address falls inside the published ranges. A User-Agent saying "PerplexityBot" from an IP outside your ranges is an imitation, not the crawler. The JSON file has a creationTime key (when I read it, 28 October 2026) and a prefixes array of objects with ipv4Prefix; I saw no IPv6 prefixes, but the code handles them anyway.

import ipaddress, json, re, sys
from collections import Counter

UA_RE = re.compile(r"(PerplexityBot|Perplexity-User)", re.I)
# nginx "combined" format: IP first, User-Agent in the last quotes.
LINE = re.compile(r'^(\S+) .*"([^"]*)"\s*$')

def load_networks(path):
    data = json.load(open(path))
    nets = []
    for p in data.get("prefixes", []):
        for key in ("ipv4Prefix", "ipv6Prefix"):
            if key in p:
                nets.append(ipaddress.ip_network(p[key]))
    return nets

def analyze(log, bot_nets, user_nets):
    outcomes = Counter()
    for line in open(log, errors="replace"):
        m = LINE.match(line)
        if not m:
            continue
        ip, ua = m.groups()
        t = UA_RE.search(ua)
        if not t:
            continue
        agent = t.group(1).lower()
        nets = bot_nets if agent == "perplexitybot" else user_nets
        ok = any(ipaddress.ip_address(ip) in n for n in nets)
        outcomes[(agent, "ip_consistent" if ok else "IP_NOT_CONSISTENT")] += 1
    return outcomes

if __name__ == "__main__":
    log, f_bot, f_user = sys.argv[1:4]
    for k, v in sorted(analyze(log, load_networks(f_bot), load_networks(f_user)).items()):
        print(k, v)

Download the two JSON files into a folder of your own and pass the paths as arguments; reload them periodically (the documentation names them as the source of truth and recommends updating rules). The program answers one precise question: do requests claiming to be Perplexity really come from the published addresses? It does not answer the opposite question, the one that matters to anyone who wants to block: how much Perplexity traffic arrives without declaring itself. For that there is no reliable method from outside: by definition, an agent presenting itself as an ordinary browser is indistinguishable from an ordinary browser, except through probabilistic heuristics, which get it wrong.

The Cloudflare report of 4 August 2025, for what it says

Cloudflare reported that, when the declared agents were blocked, it observed accesses with a generic macOS browser User-Agent, from addresses not in the published ranges, with IP and ASN rotation, and that the activity ignored robots.txt or did not download it. Estimate: the declared agents made 20-25 million requests a day, the undeclared traffic 3-6 million, across tens of thousands of domains. The method: newly bought, never-indexed domains with a robots.txt forbidding everything and WAF rules blocking the declared agents, on which Perplexity nevertheless answered detailed questions. Cloudflare delisted Perplexity from verified bots and added heuristics to its managed rule. In the text I read there is no reply from Perplexity.

How to use it: it is a one-sided, technically argued testimony about a specific period. It does not prove the behavior repeats today and does not refute it. So the professional answer is "if this matters to you, measure in your own logs, and prepare a block that does not depend on the bot's courtesy". Source: Cloudflare, 4 August 2025. One operational detail from Perplexity's documentation: if you use Cloudflare, custom rules cannot skip "Bot Fight Mode", which may still challenge these agents even when you have allowed them.

Decisions by sector and size

Hypothetical scenarios; declared assumptions, no data measured on real sites.

Small business, professional practice: the accounting firm that wants to be found

Who: a firm of five with a site of twenty guides written by the partners. Manual task: none: the site is a shop window. Decision: allow PerplexityBot, because a citation of a guide is a signal of authority and the bandwidth cost is negligible. What changes: one robots.txt line and a monthly log check with the program above. What goes wrong: an outdated guide (rates, deadlines) is cited after it has become wrong. The risk is all in the content: a visible update date, periodic review, and a page explaining what changed. Whether being cited brings clients, I cannot promise (article 8).

Small business, retail: the shop that does not want its filters indexed

Who: an online shop with a 3,000-product catalog and filter pages generated from parameters. Decision: allow PerplexityBot on product pages but keep out cart, internal search and parameterized URLs (Disallow: /cart, Disallow: /*?filter=; the wildcard is supported by many crawlers but not guaranteed for all: check the agent's documentation). What goes wrong: too broad a ban removes the product pages too; too narrow leaves thousands of near-identical URLs. Test: look in the logs at which paths it really requests.

Healthcare and public administration: what must never depend on robots.txt

Who: a healthcare facility or a municipality with a portal holding both public pages (hours, services) and private areas (reports, case files). Classic mistake: thinking Disallow: /private-area protects. It does not: robots.txt is a public courtesy file, and it even reveals the paths. The private area must sit behind authentication. Decision: allow the public pages, because correct information on hours and services, if cited, serves citizens; verify with an external unauthenticated scan that no personal content is reachable. What goes wrong: a document uploaded by mistake to a public folder; the control is not the file, it is a periodic audit of what answers 200 without login.

Large enterprise, manufacturing: technical documentation and the WAF

Who: a manufacturer with thousands of technical PDFs and a support portal. What matters: governance and proof of what was done. Decision: a written policy for each declared agent (allow PerplexityBot on public manuals, deny Perplexity-User on portals with restrictive terms through a WAF rule combining User-Agent and IP ranges), reviewed when the JSON files change, with a monthly report from the logs. What goes wrong: WAF rules mistakenly blocking the agent you wanted to allow (the Bot Fight Mode challenge); a customer-only manual published by mistake; the impossibility of identifying undeclared traffic. Anyone deciding to block for licensing reasons must know the block is a duty of diligence, not a guarantee.

← Article 6: costs, QPS and 429s Article 8: getting cited →

Frequently asked questions

Does Perplexity respect robots.txt?

According to the documentation, PerplexityBot does; Perplexity-User, which acts on a user's request, generally ignores it. The two settings are independent and changes may take up to 24 hours.

How do I block Perplexity-User?

robots.txt is not enough, because it is generally ignored. You need a server or WAF rule combining User-Agent and the IP ranges published in the perplexity-user.json file.

How do I verify a request is really PerplexityBot?

Compare the IP address with the ranges in the perplexitybot.json file: a User-Agent claiming PerplexityBot from an IP outside the ranges is an imitation.

Does Perplexity use undeclared crawlers?

Cloudflare reported so on 4 August 2025, with estimates of 3-6 million requests a day. I have not measured current behavior: for your site the only evidence is in your own logs.

Sources and further reading

Commenti

Caricamento commenti...

Sign in to comment

Discuss this article in the community

Join the Telegram group to discuss with other developers, ask questions and share your experiences.

Did you like this article?

Explore other content on the blog or discover my projects