Tollgateモデルとは
TollgateはHTTP 402(Payment Required)ステータスコードを活用した、AIクローラーへのコンテンツライセンス課金モデルです。高速道路の料金所(Tollgate)のように、ライセンスを購入したAIのみ通過を許可し、未払いのAIはブロックします。
HTTP 402の歴史と現在の使われ方
HTTP 402は1996年のHTTP/1.0仕様策定時から「将来の電子決済のために予約」されていましたが、長年実用化されていませんでした。2024年以降、AIクローラー対策として再注目されており、特にコンテンツクリエイターとAI企業の間のライセンス交渉の仕組みとして注目されています。
Tollgateフロー
- AIボットがサイトにアクセス
- User-Agent/IPでAIボットと判定
- ライセンスキーがない → HTTP 402を返す
- AIベンダーがStripeでライセンス購入
- APIキーを取得してリクエストに添付
- キー検証成功 → コンテンツを返す
Next.js実装
// middleware.ts
export async function middleware(request: NextRequest) {
const ua = request.headers.get("user-agent") ?? "";
if (!/GPTBot|ClaudeBot|PerplexityBot/i.test(ua)) {
return NextResponse.next();
}
const apiKey = request.headers.get("x-license-key") ?? "";
// APIキーなし → 402を返してライセンスページに誘導
if (!apiKey) {
return new NextResponse(
JSON.stringify({
error: "License required",
license_url: "https://monitor.microforge.works/pricing",
price: "¥3,000/month",
}),
{
status: 402,
headers: {
"Content-Type": "application/json",
"X-License-Info": "https://monitor.microforge.works/pricing",
},
}
);
}
// キー検証
const valid = await verifyKey(apiKey);
if (!valid) {
return new NextResponse("Invalid license key", { status: 403 });
}
return NextResponse.next();
}
収益試算
| シナリオ | 月間AIアクセス | ライセンス料 | 月収 |
|---|---|---|---|
| 小規模ブログ | 5,000回 | ¥3,000/月 | ¥3,000〜 |
| 中規模メディア | 50,000回 | ¥3,000/月×複数 | ¥10,000〜 |
| 大規模サイト | 500,000回 | エンタープライズ交渉 | 交渉次第 |
AI Access Monitorで即実装
AI Access MonitorのTollgate機能を使えば、上記の実装を自分で組まずに即日導入できます。Stripe連携・ライセンス管理・キー検証がすべて含まれています。