Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

静的リソースの保護

最終更新 Markdown で表示Agent セットアップ

Pro、Business、Enterprise のお客様は、Cloudflare のボット対策で 静的リソース をボットから保護できます。

Super Bot Fight Mode

Pro または Business のお客様、あるいは Bot Management のない Enterprise のお客様として、この機能を有効にするには次の手順を実行します。

  1. Cloudflare ダッシュボードで Security Settings ページを開きます。

    公式ダッシュボードで Settings を開く ↗
  2. Bot traffic で絞り込みます。

  3. Super Bot Fight Mode に移動します。

  4. Configurations で Static resource protection の編集アイコンを選択し、オンにします。

Bot Management for Enterprise

cf.bot_management.score を使う カスタムルール を作成すると、静的リソースはデフォルトで保護されます。

静的リソースを除外するには、カスタムルールに not (cf.bot_management.static_resource) を含めます。

保護対象のファイル

静的リソースは、次の拡張子のファイルです。

ico|jpg|png|jpeg|gif|css|js|tif|tiff|bmp|pict|webp|svg|svgz|class|jar|txt|csv|doc|docx|xls|xlsx|pdf|ps|pls|ppt|pptx|ttf|otf|woff|woff2|eot|eps|ejs|swf|torrent|midi|mid|m3u8|m4a|mp3|ogg|ts

さらに、/.well-known/ URL パスとその配下の要素はすべて、拡張子に関係なく静的リソースとみなされます。

役に立ちましたか?