·6分で読める

PerplexityBotをブロックする方法【2026年版】

Perplexity AIのクローラー「PerplexityBot」の仕様と、robots.txt・Nginx・Cloudflare・Next.js Middlewareを使った具体的なブロック方法を解説します。

PerplexityBotPerplexityAIクローラーブロック

PerplexityBotとは

PerplexityBotはPerplexity AIが運用するWebクローラーです。Perplexityは「AIによる検索エンジン」として急成長しており、ユーザーの質問に対してWebページを引用しながら回答を生成します。PerplexityBotはそのための情報収集クローラーで、あなたのサイトのコンテンツを直接引用して回答に使用します。

User-Agentは PerplexityBot/1.0 (+https://docs.perplexity.ai/docs/perplexitybot) と明記されています。

PerplexityBotが問題になる理由

Perplexityはコンテンツを引用して回答を生成するため、ユーザーはあなたのサイトにアクセスせずに情報を得られます。これが「ゼロクリック問題」と呼ばれ、サイトのトラフィック・広告収益に直接影響します。また、コンテンツを無断で商用利用することへの法的懸念も広がっています。

robots.txtでブロック

User-agent: PerplexityBot
Disallow: /

Next.js Middlewareでブロック(HTTP 402)

// middleware.ts
const AI_BOTS = /PerplexityBot/i;

export function middleware(request: NextRequest) {
  const ua = request.headers.get("user-agent") ?? "";
  if (AI_BOTS.test(ua)) {
    return new NextResponse("Payment Required", { status: 402 });
  }
  return NextResponse.next();
}

Nginxでブロック

if ($http_user_agent ~* "PerplexityBot") {
  return 403;
}

Cloudflare WAFルール

Cloudflare WAFで http.user_agent contains "PerplexityBot" を条件にBlockアクションを設定します。

ブロック確認

curl -A "PerplexityBot/1.0" https://yourdomain.com/ -I

まずは計測を

AI Access Monitorを使えば、PerplexityBotが1日何回・どのページを読んでいるかをリアルタイムで計測できます。ブロック前に実態を把握することをおすすめします。

AI Access Monitor

まず計測から始めよう

1行のコード追加で、AIクローラーの計測を今日から開始。無料・設定不要。

無料で始める →