Pushlyクローラー
このページでは、Pushlyクローラーがどのように自己識別するか、使用するIPアドレス、そしてそれを許可するためのインフラ設定方法について説明します。
最終更新
(http.user_agent contains "PushlyCrawler/1.0")
または
(ip.src in {52.0.101.14 34.213.44.134})if (req.http.User-Agent ~ "PushlyCrawler/1.0" ||
client.ip == 52.0.101.14 ||
client.ip == 34.213.44.134) {
# ここでレート制限 / ボット対策ロジックをバイパス
# たとえば:
return (pass);
}map $http_user_agent $is_pushly_crawler {
default 0;
"~PushlyCrawler/1\.0" 1;
}
server {
listen 80;
server_name example.com;
# 必要に応じて、特定の location のみに適用
location / {
# IP で許可
allow 52.0.101.14;
allow 34.213.44.134;
# 必要に応じて UA で許可
if ($is_pushly_crawler) {
set $pushly_allowed 1;
}
# 例: 一部の保護をバイパス
if ($pushly_allowed) {
# ここに独自ロジックを記述(例: レート制限をスキップ)
}
# 通常の設定
try_files $uri $uri/ /index.html;
}
}