User AgentDescription
PerplexityBotPerplexityBot is designed to surface and link websites in search results on Perplexity. It is not used to crawl content for AI foundation models. To ensure your site appears in search results, we recommend allowing PerplexityBot in your site’s robots.txt file and permitting requests from our published IP ranges listed below.

Full user-agent string: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot)

Published IP addresses: https://www.perplexity.com/perplexitybot.json
Perplexity‑UserPerplexity-User supports user actions within Perplexity. When users ask Perplexity a question, it might visit a web page to help provide an accurate answer and include a link to the page in its response. Perplexity-User controls which sites these user requests can access. It is not used for web crawling or to collect content for training AI foundation models.

Full user-agent string: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Perplexity-User/1.0; +https://perplexity.ai/perplexity-user)

Published IP addresses: https://www.perplexity.com/perplexity-user.json

Since a user requested the fetch, this fetcher generally ignores robots.txt rules.

WAF Configuration

If you’re using a Web Application Firewall (WAF) to protect your site, you may need to explicitly whitelist Perplexity’s bots to ensure they can access your content. Below are configuration guidelines for popular WAF providers.

Cloudflare WAF

To configure Cloudflare WAF to allow Perplexity bots:
1

Navigate to WAF settings

In your Cloudflare dashboard, go to SecurityWAF.
2

Create a new rule

Click on Custom rules and create a new rule to allow Perplexity bots.
3

Configure rule conditions

Set up a rule that combines both User-Agent and IP address conditions:
  • Field: User Agent
  • Operator: Contains
  • Value: PerplexityBot OR Perplexity-User
AND
  • Field: IP Source Address
  • Operator: Is in
  • Value: Use the IP ranges from the official endpoints listed below
4

Set rule action

Set the action to Allow to ensure these requests bypass other security rules.

AWS WAF

For AWS WAF configuration, create IP sets and string match conditions:
1

Create IP sets

In the AWS WAF console, create IP sets for both PerplexityBot and Perplexity-User using the IP addresses from the official endpoints listed below.
2

Create string match conditions

Create string match conditions for the User-Agent headers:
  • PerplexityBot
  • Perplexity-User
3

Create allow rules

Create rules that combine the IP sets with the corresponding User-Agent strings, and set the action to Allow.
4

Associate with Web ACL

Associate these rules with your Web ACL and ensure they have higher priority than blocking rules.

IP Address Sources

Always use the most current IP ranges from the official JSON endpoints. These addresses are updated regularly and should be the source of truth for your WAF configurations.
Set up automated processes to periodically fetch and update your WAF rules with the latest IP ranges from these endpoints to ensure continuous access for Perplexity bots.

Best Practices

When configuring WAF rules for Perplexity bots, combine both User-Agent string matching and IP address verification for enhanced security while ensuring legitimate bot traffic can access your content.
Changes to WAF configurations may take some time to propagate. Monitor your logs to ensure the rules are working as expected and that legitimate Perplexity bot traffic is being allowed through.