# Rules 受信リクエストの変更、Cloudflare 設定の変更、アクションの実行ができます > 以下のリンクは、各ページの Markdown 版を直接指します。 任意のページは、`index.md` サフィックスなしの URL に `Accept: text/markdown` ヘッダーを付けて取得することもできます(例: `curl -H "Accept: text/markdown" https://developers.cloudflare.com/rules/`)。 > > その他の Cloudflare 製品は、[Cloudflare ドキュメントディレクトリ](https://developers.cloudflare.com/llms.txt) を参照してください。 ## 概要 - [Cloudflare Rules](https://developers.cloudflare.com/rules/index.md): Cloudflare Rules を使い、リクエストとレスポンスの調整、設定の変更、特定リクエストに対するアクションの実行を行います。 ## Rules の例 - [Rules の例](https://developers.cloudflare.com/rules/examples/index.md): Transform Rules、リダイレクト、オリジンルールなどの設定例です。 ## Configuration Rules - [Configuration Rules](https://developers.cloudflare.com/rules/configuration-rules/index.md): セキュリティレベルやキャッシュなど、一致した受信リクエスト向けの Cloudflare 設定をカスタマイズします。 - [API で設定ルールを作成する](https://developers.cloudflare.com/rules/configuration-rules/create-api/index.md): Rulesets API を使って設定ルールを作成します。 - [ダッシュボードで configuration rule を作成する](https://developers.cloudflare.com/rules/configuration-rules/create-dashboard/index.md): Cloudflare ダッシュボードで configuration rules を作成します。 - [Configuration Rules の例](https://developers.cloudflare.com/rules/configuration-rules/examples/index.md): リクエストごとにゾーン設定を調整する Configuration Rules の例です。 - [Terraform で単一の設定ルールを定義する](https://developers.cloudflare.com/rules/configuration-rules/examples/define-single-configuration-terraform/index.md): Terraform で設定ルールを作成し、指定ゾーンの API リクエストに対して Email Obfuscation と Browser Integrity Check をオフにします。 - [レスポンス本文の検査](https://developers.cloudflare.com/rules/configuration-rules/response-body-inspection/index.md): Cloudflare がレスポンス本文を検査するタイミングと、検査がストリーミングレスポンスに与える影響を説明します。 - [Configuration Rules の設定](https://developers.cloudflare.com/rules/configuration-rules/settings/index.md): Configuration Rules でカスタマイズできる設定です。 ## Cloudflare Snippets - [Cloudflare Snippets](https://developers.cloudflare.com/rules/snippets/index.md): エッジで軽量な JavaScript を実行し、リクエストとレスポンスを変更します。 - [API で Snippets を設定する](https://developers.cloudflare.com/rules/snippets/create-api/index.md): Cloudflare API で Snippets を作成します。 - [ダッシュボードでスニペットを作成する](https://developers.cloudflare.com/rules/snippets/create-dashboard/index.md): Cloudflare ダッシュボードで Snippets を作成します。 - [Terraform で Snippets を設定する](https://developers.cloudflare.com/rules/snippets/create-terraform/index.md): Terraform Cloudflare プロバイダーを使って Snippets を作成します。 - [Snippets のトラブルシューティング](https://developers.cloudflare.com/rules/snippets/errors/index.md): Snippets のよくあるエラーと対処方法です。 - [Snippets の例](https://developers.cloudflare.com/rules/snippets/examples/index.md): ヘッダー、リダイレクト、キャッシュなどの Snippets の例です。 - [同じ URL で直接アクセスできる A/B テスト](https://developers.cloudflare.com/rules/snippets/examples/ab-testing-same-url/index.md): Cookie に基づいて返すレスポンスを制御し、A/B テストを設定します。 - [A/B テスト向けに Cookie へ日付を付与する](https://developers.cloudflare.com/rules/snippets/examples/append-dates-to-cookies/index.md): Cookie の有効期限とテストグループを動的に設定します。 - [ヘッダーによる認証](https://developers.cloudflare.com/rules/snippets/examples/auth-with-headers/index.md): ヘッダー内の既知の事前共有キーに基づいて、リクエストを許可または拒否します。 [WebCrypto API](/workers/runtime-apis/web-crypto/) の代替ではありません。 - [Bot Management の情報をオリジンへ送る](https://developers.cloudflare.com/rules/snippets/examples/bot-data-to-origin/index.md): オリジンへ [Bots](/bots/) の情報を送ります。利用できるフィールドの一覧は [Bot Management variables](/bots/reference/bot-management-variables/) を参照してください。 - [疑わしいボットをハニーポットへ送る](https://developers.cloudflare.com/rules/snippets/examples/bots-to-honeypot/index.md): [bot score フィールド](/workers/runtime-apis/request/#incomingrequestcfproperties) を使い、ボットをハニーポットへ送ります。 - [マップオブジェクトに基づく一括リダイレクト](https://developers.cloudflare.com/rules/snippets/examples/bulk-redirect-map/index.md): リクエスト URL に対応するマップオブジェクトに基づいて、特定の URL へリクエストをリダイレクトします。 - [国コードによるリダイレクト](https://developers.cloudflare.com/rules/snippets/examples/country-code-redirect/index.md): 訪問者のヘッダーにある国コードに基づいてレスポンスをリダイレクトします。 - [カスタムキャッシュ](https://developers.cloudflare.com/rules/snippets/examples/custom-cache/index.md): プログラムからアセットの保存、取得、削除を行います。このテンプレートで性能を最適化し、独自のキャッシュ戦略を実装できます。 - [デバッグログ](https://developers.cloudflare.com/rules/snippets/examples/debugging-logs/index.md): エラーレスポンスのデバッグ情報をログサービスへ送ります。 - [CORS ヘッダーを定義する](https://developers.cloudflare.com/rules/snippets/examples/define-cors-headers/index.md): [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) ヘッダーを調整し、プリフライトリクエストを処理します。 - [オリジンからのリダイレクトをたどる](https://developers.cloudflare.com/rules/snippets/examples/follow-redirects/index.md): fetch リクエストを変更してオリジンからのリダイレクトをたどり、クライアントが最終レスポンスを受け取れるようにします。 - [リクエストヘッダーに HEX タイムスタンプを追加する](https://developers.cloudflare.com/rules/snippets/examples/hex-timestamp/index.md): デバッグ、追跡、カスタムルーティングのために、オリジンサーバーへ送るリクエストに、現在のタイムスタンプを 16 進数形式で入れたカスタムヘッダーを追加します。 - [JSON Web Token(JWT)を検証する](https://developers.cloudflare.com/rules/snippets/examples/jwt-validation/index.md): Authorization ヘッダーから JWT を取り出し、WebCrypto API で HMAC-SHA256 署名を検証し、クレームを確認します。 - [メンテナンスページ](https://developers.cloudflare.com/rules/snippets/examples/maintenance/index.md): オリジンサーバーやキャッシュからコンテンツを取得せず、カスタムのメンテナンスページを返します。ダウンタイム通知、計画メンテナンス、緊急メッセージに向いています。 - [特定の値で Set-Cookie ヘッダーを上書きする](https://developers.cloudflare.com/rules/snippets/examples/override-set-cookies-value/index.md): 特定の `Set-Cookie` ヘッダーを取得し、指定した値に更新します。 - [403 Forbidden を別ページへリダイレクトする](https://developers.cloudflare.com/rules/snippets/examples/redirect-forbidden-status/index.md): オリジンが `403 Forbidden` を返した場合に、別のページへリダイレクトします。 - [あるドメインから別のドメインへリダイレクトする](https://developers.cloudflare.com/rules/snippets/examples/redirect-replaced-domain/index.md): あるドメインへのリクエストをすべて、別のドメインへリダイレクトします。 - [API レスポンスからフィールドを削除する](https://developers.cloudflare.com/rules/snippets/examples/remove-fields-api-response/index.md): オリジンが `JSON` を返した場合、レスポンスをパースしてフィールドを削除し、加工したレスポンスを返します。 - [オリジンへ送る前にクエリ文字列を削除する](https://developers.cloudflare.com/rules/snippets/examples/remove-query-strings/index.md): オリジンへ渡す前に、リクエストから特定のクエリ文字列を削除します。 - [レスポンスヘッダーを削除する](https://developers.cloudflare.com/rules/snippets/examples/remove-response-headers/index.md): 特定の名前で始まるヘッダーを、レスポンスからすべて削除します。 - [受信リクエストの情報を返す](https://developers.cloudflare.com/rules/snippets/examples/return-incoming-request-properties/index.md): Cloudflare のグローバルネットワークが提供する、受信リクエストの情報を返します。 - [HTML ページのリンクを書き換える](https://developers.cloudflare.com/rules/snippets/examples/rewrite-site-links/index.md): HTML レスポンス内のリンクを動的に書き換えます。サイト移行やブランディングの更新に使えます。 - [オリジンを変更し、パスを書き換える](https://developers.cloudflare.com/rules/snippets/examples/route-and-rewrite/index.md): リクエストを別のオリジンへ振り分け、URL パスの先頭にディレクトリを追加し、特定のセグメントを削除します。 - [セキュリティヘッダーを設定する](https://developers.cloudflare.com/rules/snippets/examples/security-headers/index.md): X-XSS-Protection、X-Frame-Options、X-Content-Type-Options などの一般的なセキュリティヘッダーを設定します。 - [タイムスタンプをカスタムヘッダーとしてオリジンへ送る](https://developers.cloudflare.com/rules/snippets/examples/send-timestamp-to-origin/index.md): タイムスタンプを16進数に変換し、カスタムヘッダーとしてオリジンへ送ります。 - [オリジンのレスポンスに応じて別オリジンへルーティングする](https://developers.cloudflare.com/rules/snippets/examples/serve-different-origin/index.md): 元のリクエストへのレスポンスが `200 OK` でもリダイレクトでもない場合、別のオリジンへ送ります。 - [リクエストに署名する](https://developers.cloudflare.com/rules/snippets/examples/signing-requests/index.md): HMAC と SHA-256 アルゴリズムで署名済みリクエストを検証するか、403 を返します。 - [疑わしいリクエストを遅くする](https://developers.cloudflare.com/rules/snippets/examples/slow-suspicious-requests/index.md): Bot Score に基づいて疑わしいと判断したルールに一致する受信リクエストへ、遅延を加えます。 - [Snippets の仕組み](https://developers.cloudflare.com/rules/snippets/how-it-works/index.md): 一致するリクエストに対して、エッジで JavaScript を実行する Snippets の動作です。 - [Snippets と Workers の使い分け](https://developers.cloudflare.com/rules/snippets/when-to-use/index.md): Cloudflare のグローバルネットワークで、Snippets と Workers のどちらを使うかを判断するためのガイドです。 ## Transform Rules - [Transform Rules](https://developers.cloudflare.com/rules/transform/index.md): Transform Rules で、リクエスト URL、ヘッダー、レスポンスヘッダーを変更します。 - [Transform Rules の例](https://developers.cloudflare.com/rules/transform/examples/index.md): URL の書き換えとヘッダー変更向けの Transform Rules の例です。 - [ワイルドカードの CORS レスポンスヘッダーを追加する](https://developers.cloudflare.com/rules/transform/examples/add-cors-header/index.md): レスポンスヘッダー変換ルールを作成し、静的なワイルドカード値で `Access-Control-Allow-Origin` HTTP ヘッダーをレスポンスに追加します。 - [現在のボットスコアをリクエストヘッダーに追加する](https://developers.cloudflare.com/rules/transform/examples/add-request-header-bot-score/index.md): リクエストヘッダー変換ルールを作成し、現在のボットスコアを入れた `X-Bot-Score` HTTP ヘッダーをリクエストに追加します。 - [静的な値のリクエストヘッダーを追加する](https://developers.cloudflare.com/rules/transform/examples/add-request-header-static-value/index.md): リクエストヘッダー変換ルールを作成し、静的な値(`Cloudflare`)の `X-Source` HTTP ヘッダーをリクエストへ追加します。 - [他ゾーンからのサブリクエストにリクエストヘッダーを追加する](https://developers.cloudflare.com/rules/transform/examples/add-request-header-subrequest-other-zone/index.md): 別ゾーンからの Workers サブリクエストに HTTP ヘッダーを追加する、リクエストヘッダー変換ルールを作成します。 - [静的な値のレスポンスヘッダーを追加する](https://developers.cloudflare.com/rules/transform/examples/add-response-header-static-value/index.md): レスポンスヘッダー変換ルールを作成し、静的な値(`cookiename=value`)の `set-cookie` HTTP ヘッダーをレスポンスに追加します。 - [URL パスのエンコード済みスラッシュを正規化する](https://developers.cloudflare.com/rules/transform/examples/normalize-encoded-slash/index.md): Transform Rules の URL rewrite rule を作成し、リクエストパス内のエンコード済みフォワードスラッシュ(`%2F`)を通常のスラッシュ(`/`)に正規化します。 - [リクエストヘッダーを削除する](https://developers.cloudflare.com/rules/transform/examples/remove-request-header/index.md): リクエストヘッダー変換ルール(Transform Rules の一部)を作成し、リクエストから `cf-connecting-ip` HTTP ヘッダーを削除します。 - [レスポンスヘッダーを削除する](https://developers.cloudflare.com/rules/transform/examples/remove-response-header/index.md): レスポンスヘッダー変換ルール(Transform Rules の一部)を作成し、レスポンスから `cf-connecting-ip` HTTP ヘッダーを削除します。 - [ブログアーカイブ URL を書き換える](https://developers.cloudflare.com/rules/transform/examples/rewrite-archive-urls-new-format/index.md): URL 形式 `/posts/--
-` を新しい形式 `/posts/<YYYY>/<MM>/<DD>/<TITLE>` に書き換える Transform Rule を作成します。 - [移動したサイトセクションのパスを書き換える](https://developers.cloudflare.com/rules/transform/examples/rewrite-moved-section/index.md): Transform Rules の一部である URL 書き換えルールを作成し、`/blog/<PATH>` 以下をすべて `/marketing/<PATH>` に書き換えます。 - [アーカイブしたブログ投稿のパスを書き換える](https://developers.cloudflare.com/rules/transform/examples/rewrite-path-archived-posts/index.md): `/news/2012/...` URI パスへのリクエストを `/archive/news/2012/...` に書き換える URL 書き換えルール(Transform Rules の一部)を作成します。 - [オブジェクトストレージバケット向けにパスを書き換える](https://developers.cloudflare.com/rules/transform/examples/rewrite-path-object-storage/index.md): Transform Rules の URL rewrite rule を作成し、`/files/...` の URI パスへのリクエストを `/...` へ書き換えます。 - [複数の URL セグメントを含む画像パスを書き換える](https://developers.cloudflare.com/rules/transform/examples/rewrite-several-url-different-url/index.md): Transform Rules の URL 書き換えルールを作成し、`/images/<FOLDER1>/<FOLDER2>/<FILENAME>` へのリクエストを `/img/<FILENAME>` に書き換えます。 - [URL クエリ文字列を書き換える](https://developers.cloudflare.com/rules/transform/examples/rewrite-url-string-visitors/index.md): Transform Rule を作成し、リクエストパスを `/blog` から `/blog?sort-by=date` に書き換えます。 - [特定の国の訪問者向けにページパスを書き換える](https://developers.cloudflare.com/rules/transform/examples/rewrite-welcome-for-countries/index.md): URL リライトルール(Transform Rules の一部)を 2 つ作成し、特定の国の訪問者向けにウェルカムページのパスを書き換えます。 - [現在のボットスコアをレスポンスヘッダーに設定する](https://developers.cloudflare.com/rules/transform/examples/set-response-header-bot-score/index.md): レスポンスヘッダー変換ルール(Transform Rules の一部)を作成し、現在のボットスコアを入れた `X-Bot-Score` HTTP ヘッダーをレスポンスに設定します。 - [静的な値のレスポンスヘッダーを設定する](https://developers.cloudflare.com/rules/transform/examples/set-response-header-static-value/index.md): レスポンスヘッダー変換ルール(Transform Rules の一部)を作成し、レスポンスの `X-Bot-Score` HTTP ヘッダーを静的な値(`Cloudflare`)に設定します。 - [Managed Transforms](https://developers.cloudflare.com/rules/transform/managed-transforms/index.md): よくある用途向けに、Cloudflare が管理する事前構築の Transform Rules です。 - [Managed Transforms を設定する](https://developers.cloudflare.com/rules/transform/managed-transforms/configure/index.md): Managed Transforms の設定方法を説明します。 - [利用できる Managed Transforms](https://developers.cloudflare.com/rules/transform/managed-transforms/reference/index.md): HTTP ヘッダーを変更する Cloudflare の Managed Transforms について説明します。ボット対策、TLS クライアント認証、漏洩認証情報のチェックなどを含みます。 - [Request Header Transform Rules](https://developers.cloudflare.com/rules/transform/request-header-modification/index.md): Cloudflare のルールで HTTP リクエストヘッダーを変更する方法を説明します。 - [API でリクエストヘッダー変換ルールを作成する](https://developers.cloudflare.com/rules/transform/request-header-modification/create-api/index.md): API を使ってリクエストヘッダー変更ルールを作成します。 - [ダッシュボードでリクエストヘッダー変換ルールを作成する](https://developers.cloudflare.com/rules/transform/request-header-modification/create-dashboard/index.md): ダッシュボードでリクエストヘッダー変更ルールを作成します。 - [Terraform でルールを作成する](https://developers.cloudflare.com/terraform/additional-configurations/transform-rules/index.md#create-a-request-header-transform-rule): Terraform を使ってリクエストヘッダー変更ルールを作成します。 - [利用できるフィールドと関数](https://developers.cloudflare.com/rules/transform/request-header-modification/reference/fields-functions/index.md): リクエストヘッダー変更ルールで利用できるフィールドと関数です。 - [HTTP リクエストヘッダーの名前と値の形式](https://developers.cloudflare.com/rules/transform/request-header-modification/reference/header-format/index.md): リクエストヘッダー変更で使えるヘッダー名と値の形式です。 - [API パラメーターリファレンス](https://developers.cloudflare.com/rules/transform/request-header-modification/reference/parameters/index.md): リクエストヘッダー変更ルールで設定できるパラメーターです。 - [Response Header Transform Rules](https://developers.cloudflare.com/rules/transform/response-header-modification/index.md): Transform Rules で HTTP レスポンスヘッダーを追加、設定、または削除します。 - [API でレスポンスヘッダー変換ルールを作成する](https://developers.cloudflare.com/rules/transform/response-header-modification/create-api/index.md): API を使ってレスポンスヘッダー変更ルールを作成します。 - [ダッシュボードでレスポンスヘッダー変換ルールを作成する](https://developers.cloudflare.com/rules/transform/response-header-modification/create-dashboard/index.md): ダッシュボードでレスポンスヘッダー変更ルールを作成します。 - [Terraform でルールを作成する](https://developers.cloudflare.com/terraform/additional-configurations/transform-rules/index.md#create-a-response-header-transform-rule): Terraform を使ってレスポンスヘッダー変更ルールを作成します。 - [利用できるフィールドと関数](https://developers.cloudflare.com/rules/transform/response-header-modification/reference/fields-functions/index.md): レスポンスヘッダー変更ルールで使えるフィールドと関数です。 - [HTTP レスポンスヘッダーの名前と値の形式](https://developers.cloudflare.com/rules/transform/response-header-modification/reference/header-format/index.md): レスポンスヘッダー変更で使えるヘッダー名と値の形式です。 - [API パラメーターリファレンス](https://developers.cloudflare.com/rules/transform/response-header-modification/reference/parameters/index.md): レスポンスヘッダー変更ルールで設定できるパラメーターです。 - [Transform Rules のトラブルシューティング](https://developers.cloudflare.com/rules/transform/troubleshooting/index.md): Transform Rules でよくある問題を解決します。 - [URL Rewrite Rules](https://developers.cloudflare.com/rules/transform/url-rewrite/index.md): Transform Rules でリクエスト URL のパスとクエリ文字列を書き換えます。 - [API で URL rewrite rule を作成する](https://developers.cloudflare.com/rules/transform/url-rewrite/create-api/index.md): Rulesets API を使って URL rewrite rule を作成します。 - [ダッシュボードで URL リライトルールを作成する](https://developers.cloudflare.com/rules/transform/url-rewrite/create-dashboard/index.md): Cloudflare ダッシュボードで URL リライトルールを作成します。 - [Terraform でルールを作成する](https://developers.cloudflare.com/terraform/additional-configurations/transform-rules/index.md#create-a-url-rewrite-rule): Terraform の Cloudflare プロバイダーを使って URL rewrite rule を作成します。 - [利用できるフィールドと関数](https://developers.cloudflare.com/rules/transform/url-rewrite/reference/fields-functions/index.md): URL リライトルールで利用できるフィールドと関数です。 - [URL 書き換えパラメーター](https://developers.cloudflare.com/rules/transform/url-rewrite/reference/parameters/index.md): URL Rewrite Rule で設定できるパラメーターです。 ## リダイレクト - [リダイレクト](https://developers.cloudflare.com/rules/url-forwarding/index.md): Single Redirects と Bulk Redirects で、訪問者を別の URL へリダイレクトします。 - [Bulk Redirects](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/index.md): アカウントレベルで、多数の URL を Bulk Redirects でリダイレクトします。 - [Bulk Redirects の概念](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/concepts/index.md): Bulk Redirects は、URL リダイレクト、Bulk Redirect リスト、Bulk Redirect ルールの組み合わせで動作します。 - [API で Bulk Redirects を作成する](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/create-api/index.md): Cloudflare API で Bulk Redirects を作成する方法です。 - [ダッシュボードで Bulk Redirects を作成する](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/create-dashboard/index.md): Cloudflare ダッシュボードで Bulk Redirects を作成します。 - [Bulk Redirects のよくある質問](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/faq/index.md): Bulk Redirects についてよくある質問への回答です。 - [Bulk Redirects の仕組み](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/how-it-works/index.md): Bulk Redirects が受信リクエストを評価し、一致させる方法です。 - [Bulk Redirects の CSV ファイル形式](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/reference/csv-file-format/index.md): Bulk Redirect リストへインポートするための CSV ファイル形式です。 - [使えるフィールドと関数](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/reference/fields-functions/index.md): Bulk Redirect ルールで使えるフィールドと関数です。 - [Bulk Redirects API の JSON オブジェクト](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/reference/json-objects/index.md): Bulk Redirect API リクエストの JSON オブジェクト構造です。 - [URL リダイレクトのパラメーター](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/reference/parameters/index.md): Bulk Redirect ルールで設定できるパラメーターです。 - [Bulk Redirects で使える URL コンポーネント](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/reference/url-components/index.md): Bulk Redirects のソース URL とターゲット URL で使う URL コンポーネントです。 - [Terraform で Bulk Redirects を設定する](https://developers.cloudflare.com/rules/url-forwarding/bulk-redirects/terraform-example/index.md): Terraform の Cloudflare プロバイダーを使って Bulk Redirects を作成します。 - [リダイレクトの例](https://developers.cloudflare.com/rules/url-forwarding/examples/index.md): よくあるリダイレクトシナリオ向けの URL 転送ルールの例です。 - [モバイルリダイレクトを行う](https://developers.cloudflare.com/rules/url-forwarding/examples/perform-mobile-redirects/index.md): モバイル端末の訪問者を別のホスト名へ送るリダイレクトルールを作成します。 - [管理画面へのリクエストを HTTPS へリダイレクトする](https://developers.cloudflare.com/rules/url-forwarding/examples/redirect-admin-https/index.md): `store.example.com` の管理画面へのリクエストを HTTPS へリダイレクトし、元のパスとクエリ文字列を保つリダイレクトルールを作成します。 - [あるドメインから別ドメインへリクエストをリダイレクトする](https://developers.cloudflare.com/rules/url-forwarding/examples/redirect-all-another-domain/index.md): 廃止した HTTP サービス(ポート 80)を除き、機能を保ったまま、すべてのリクエストを別ドメインへ送るリダイレクトルールを作成します。 - [1 つの国からのリクエストを別ドメインへリダイレクトする](https://developers.cloudflare.com/rules/url-forwarding/examples/redirect-all-country/index.md): 英国からのすべてのウェブサイト訪問者を別ドメインへリダイレクトし、同じパスの機能はそのまま残すリダイレクトルールを作成します。 - [ドメインへのリクエストを新しいドメインへリダイレクトする](https://developers.cloudflare.com/rules/url-forwarding/examples/redirect-all-different-domain-root/index.md): ドメインのすべての URL を、新しいドメインのルートへ向けるリダイレクトルールを作成します。旧ドメインのサブドメインも含みます。 - [別のホスト名へリクエストをリダイレクトする](https://developers.cloudflare.com/rules/url-forwarding/examples/redirect-all-different-hostname/index.md): `smallshop.example.com` へのすべてのリクエストを、HTTPS で別のホスト名へリダイレクトし、元のパスとクエリ文字列を維持するリダイレクトルールを作成します。 - [地域の訪問者を特定のサブドメインへリダイレクトする](https://developers.cloudflare.com/rules/url-forwarding/examples/redirect-country-subdomains/index.md): 英国とフランスからの訪問者を、`example.com` サイトのルートパス(`/`)から、それぞれのローカライズ済みサブドメイン `https://gb.example.com` と `https://fr.example.com` へリダイレクトする リダイレクトルールを作成します。 - [訪問者を新しいページ URL へリダイレクトする](https://developers.cloudflare.com/rules/url-forwarding/examples/redirect-new-url/index.md): `/contact-us/` から新しいパス `/contacts/` へ訪問者を送るリダイレクトルールを作成します。 - [ルートから WWW へリダイレクトする](https://developers.cloudflare.com/rules/url-forwarding/examples/redirect-root-to-www/index.md): ルート(「apex」または「naked」ドメインとも呼ばれます)から WWW サブドメインへ、HTTPS リクエストを転送するリダイレクトルールを作成します。 - [WWW からルートへリダイレクトする](https://developers.cloudflare.com/rules/url-forwarding/examples/redirect-www-to-root/index.md): WWW サブドメインからルート(「apex」または「naked」ドメインとも呼ばれます)へ HTTPS リクエストを転送するリダイレクトルールを作成します。 - [URL パスからロケールを削除する](https://developers.cloudflare.com/rules/url-forwarding/examples/remove-locale-url/index.md): ロケール情報を含む古い URL 形式から新しい URL 形式へ訪問者をリダイレクトするリダイレクトルールを作成します。 - [Single Redirects](https://developers.cloudflare.com/rules/url-forwarding/single-redirects/index.md): 式ベースの Single Redirect ルールで URL リダイレクトを作成します。 - [API でリダイレクトルールを作成する](https://developers.cloudflare.com/rules/url-forwarding/single-redirects/create-api/index.md): Rulesets API を使って Single Redirect ルールを作成します。 - [ダッシュボードでリダイレクトルールを作成する](https://developers.cloudflare.com/rules/url-forwarding/single-redirects/create-dashboard/index.md): Cloudflare ダッシュボードで Single Redirect ルールを作成します。 - [Single Redirects の設定](https://developers.cloudflare.com/rules/url-forwarding/single-redirects/settings/index.md): Single Redirect ルールで使える設定です。 - [Terraform でリダイレクトルールを作成する](https://developers.cloudflare.com/rules/url-forwarding/single-redirects/terraform-example/index.md): Terraform の Cloudflare プロバイダーで Single Redirect ルールを作成します。 ## Origin Rules - [Origin Rules](https://developers.cloudflare.com/rules/origin-rules/index.md): 一致したリクエストのオリジンサーバー、Host ヘッダー、SNI、DNS 解決を上書きします。 - [API でオリジンルールを作成する](https://developers.cloudflare.com/rules/origin-rules/create-api/index.md): Rulesets API を使ってオリジンルールを作成します。 - [ダッシュボードでオリジンルールを作成する](https://developers.cloudflare.com/rules/origin-rules/create-dashboard/index.md): Cloudflare ダッシュボードでオリジンルールを作成します。 - [Origin Rules の例](https://developers.cloudflare.com/rules/origin-rules/examples/index.md): ルーティングとヘッダー変更向けの Origin Rules の例です。 - [HTTP Host ヘッダーと DNS レコードを変更する](https://developers.cloudflare.com/rules/origin-rules/examples/change-http-host-header/index.md): Origin Rule を作成し、HTTP `Host` ヘッダーと解決先の DNS レコードを変更します。 - [宛先ポートを変更する](https://developers.cloudflare.com/rules/origin-rules/examples/change-port/index.md): 宛先ポートを変更するオリジンルールを作成します。 - [Terraform でオリジンルールを 1 件定義する](https://developers.cloudflare.com/rules/origin-rules/examples/define-single-origin-terraform/index.md): Terraform でオリジンルールを作成し、API リクエストの `Host` ヘッダー、解決先ホスト名、宛先ポートを上書きします。 - [Origin Rules のよくある質問](https://developers.cloudflare.com/rules/origin-rules/faq/index.md): Origin Rules についてよくある質問への回答です。 - [Origin Rules の設定](https://developers.cloudflare.com/rules/origin-rules/features/index.md): 対応している Origin Rule の機能と、プラン別の利用可否です。 - [Origin Rules API のパラメーターリファレンス](https://developers.cloudflare.com/rules/origin-rules/parameters/index.md): オリジンルールで設定できるパラメーターです。 - [Origin Rules のチュートリアル](https://developers.cloudflare.com/rules/origin-rules/tutorials/index.md): よくあるオリジンルール設定の手順付きチュートリアルです。 - [URI パスと Host ヘッダーを変更する](https://developers.cloudflare.com/rules/origin-rules/tutorials/change-uri-path-and-host-header/index.md): Transform Rules と Origin Rules を使って、受信リクエストの URI パスと Host ヘッダーの両方を変更する手順です。 - [カスタムドメインで Pages を指す](https://developers.cloudflare.com/rules/origin-rules/tutorials/point-to-pages-with-custom-domain/index.md): オリジンルールと DNS レコードを設定し、カスタムドメイン付きの Pages デプロイを指す手順です。 - [カスタムドメインで R2 バケットを指す](https://developers.cloudflare.com/rules/origin-rules/tutorials/point-to-r2-bucket-with-custom-domain/index.md): Origin Rule と DNS レコードを設定し、カスタムドメインを設定した R2 バケットを指す方法を説明します。 ## Cache Rules - [Cache Rules](https://developers.cloudflare.com/cache/how-to/cache-rules/index.md): Cache Rules を使い、一致するリクエストのキャッシュ動作を設定します。 ## Cloud Connector - [Cloud Connector](https://developers.cloudflare.com/rules/cloud-connector/index.md): 一致するリクエストを、クラウドプロバイダーのストレージバケットやサービスへルーティングします。 - [API で Cloud Connector ルールを設定する](https://developers.cloudflare.com/rules/cloud-connector/create-api/index.md): Cloudflare API で Cloud Connector ルールを作成します。 - [ダッシュボードで Cloud Connector ルールを設定する](https://developers.cloudflare.com/rules/cloud-connector/create-dashboard/index.md): Cloudflare ダッシュボードで Cloud Connector ルールを作成します。 - [Terraform で Cloud Connector ルールを設定する](https://developers.cloudflare.com/rules/cloud-connector/create-terraform/index.md): Terraform Cloudflare プロバイダーを使って Cloud Connector ルールを作成します。 - [Cloud Connector の例](https://developers.cloudflare.com/rules/cloud-connector/examples/index.md): クラウドストレージプロバイダーへトラフィックをルーティングする Cloud Connector ルールの例です。 - [Terraform で /images を S3 バケットへルーティングする](https://developers.cloudflare.com/rules/cloud-connector/examples/route-images-to-aws-s3-using-terraform/index.md): URI パスが `/images` で始まるリクエストを、Terraform を使った Cloud Connector で特定の AWS S3 バケットへルーティングします。 - [`/images` を S3 バケットへルーティングする](https://developers.cloudflare.com/rules/cloud-connector/examples/route-images-to-s3/index.md): Cloud Connector を使い、URI パスが `/images` で始まるリクエストを特定の AWS S3 バケットへルーティングします。 - [EU の訪問者を Google Cloud Storage バケットへ送る](https://developers.cloudflare.com/rules/cloud-connector/examples/send-eu-visitors-to-gcs/index.md): Cloud Connector を使い、EU の訪問者からのトラフィックをすべて Google Cloud Storage バケットへルーティングします。 - [Azure Blob Storage から /static-assets を配信する](https://developers.cloudflare.com/rules/cloud-connector/examples/serve-static-assets-from-azure/index.md): Cloud Connector を使い、URI パスが `/static-assets` で始まるリクエストを Azure Blob Storage コンテナーへルーティングします。 - [Cloud Connector が対応するクラウドプロバイダー](https://developers.cloudflare.com/rules/cloud-connector/providers/index.md): Cloud Connector が対応するクラウドプロバイダーとストレージサービスです。 ## Custom Errors - [Custom Errors](https://developers.cloudflare.com/rules/custom-errors/index.md): Cloudflare またはオリジンサーバーのエラーに対して、カスタムのエラーページを表示します。 - [Custom Errors のよく使う API 呼び出し](https://developers.cloudflare.com/rules/custom-errors/api-calls/index.md): Cloudflare API でカスタムエラールールとエラーページを管理します。 - [カスタムエラールールを作成する](https://developers.cloudflare.com/rules/custom-errors/create-rules/index.md): ダッシュボードまたは API でカスタムエラールールを作成します。 - [エラーページを編集する](https://developers.cloudflare.com/rules/custom-errors/edit-error-pages/index.md): エラーページの HTML を編集してカスタマイズします。 - [Custom Error Rules の例](https://developers.cloudflare.com/rules/custom-errors/example-rules/index.md): よくあるエラー処理シナリオ向けの Custom Error Rules の例です。 - [エラーページの種類](https://developers.cloudflare.com/rules/custom-errors/reference/error-page-types/index.md): カスタムエラールールでカスタマイズできるエラーページの種類です。 - [エラートークン](https://developers.cloudflare.com/rules/custom-errors/reference/error-tokens/index.md): カスタムエラーページの HTML で使える動的トークンです。 - [カスタムエラーのパラメーター](https://developers.cloudflare.com/rules/custom-errors/reference/parameters/index.md): カスタムエラールールで設定できるパラメーターです。 - [Error Pages のトラブルシューティング](https://developers.cloudflare.com/rules/custom-errors/troubleshooting/index.md): カスタムエラールールとエラーページでよくある問題を解決します。 ## Compression Rules - [Compression Rules](https://developers.cloudflare.com/rules/compression-rules/index.md): 特定のコンテンツタイプとファイル拡張子に対するレスポンス圧縮アルゴリズムをカスタマイズします。 - [API で圧縮ルールを作成する](https://developers.cloudflare.com/rules/compression-rules/create-api/index.md): Rulesets API を使って圧縮ルールを作成します。 - [ダッシュボードで圧縮ルールを作成する](https://developers.cloudflare.com/rules/compression-rules/create-dashboard/index.md): Cloudflare ダッシュボードで圧縮ルールを作成します。 - [Compression Rules の例](https://developers.cloudflare.com/rules/compression-rules/examples/index.md): Brotli、Gzip、Zstandard の設定向けの Compression Rules の例です。 - [Brotli 圧縮を無効にする](https://developers.cloudflare.com/rules/compression-rules/examples/disable-all-brotli/index.md): ゾーンへのすべての受信リクエストで Brotli 圧縮をオフにする圧縮ルールを作成します。 - [AVIF 画像の圧縮を無効にする](https://developers.cloudflare.com/rules/compression-rules/examples/disable-compression-avif/index.md): コンテンツタイプ、またはリクエストに含まれるファイル拡張子に基づいて、AVIF 画像の圧縮をオフにする圧縮ルールを作成します。 - [デフォルトのコンテンツタイプで Zstandard 圧縮を有効にする](https://developers.cloudflare.com/rules/compression-rules/examples/enable-zstandard/index.md): Cloudflare がデフォルトで圧縮するレスポンスのコンテンツタイプに対して、Zstandard 圧縮を有効にする圧縮ルールを作成します。 - [CSV ファイルに Gzip 圧縮を使う](https://developers.cloudflare.com/rules/compression-rules/examples/gzip-for-csv/index.md): CSV ファイルの優先圧縮方式として Gzip を設定する圧縮ルールを作成します。 - [特定パスでは Brotli 圧縮だけを使う](https://developers.cloudflare.com/rules/compression-rules/examples/only-brotli-url-path/index.md): 特定の URI パスで、対応する圧縮アルゴリズムを Brotli だけにする圧縮ルールを作成します。 - [圧縮ルールの設定](https://developers.cloudflare.com/rules/compression-rules/settings/index.md): 圧縮ルールで使える圧縮アルゴリズムとコンテンツタイプの設定です。 ## Page Rules - [Page Rules](https://developers.cloudflare.com/rules/page-rules/index.md): 非推奨の Page Rules で、URL パターンに一致したときにアクションを実行します。 - [Page Rules による URL 転送](https://developers.cloudflare.com/rules/page-rules/how-to/url-forwarding/index.md): Page Rules で URL 転送ルールを作成します。 - [Page Rules を管理する](https://developers.cloudflare.com/rules/page-rules/manage/index.md): ダッシュボードで Page Rules を作成、編集、管理します。 - [Page Rules の追加リファレンス](https://developers.cloudflare.com/rules/page-rules/reference/additional-reference/index.md): Page Rules の設定に関する追加リファレンスです。 - [推奨 Page Rules](https://developers.cloudflare.com/rules/page-rules/reference/recommended-rules/index.md): よくある用途向けの推奨 Page Rules 設定です。 - [Page Rules の設定](https://developers.cloudflare.com/rules/page-rules/reference/settings/index.md): 利用できる Page Rules の設定とその説明です。 - [Page Rules のワイルドカードマッチ](https://developers.cloudflare.com/rules/page-rules/reference/wildcard-matching/index.md): Page Rules の URL でワイルドカードとパターンマッチがどのように動くかです。 - [Page Rules のトラブルシューティング - 課金とサブスクリプション](https://developers.cloudflare.com/rules/page-rules/troubleshooting/billing-and-subscription/index.md): Page Rules の課金とサブスクリプションの問題を解決します。 - [Page Rules のトラブルシューティング - 一般](https://developers.cloudflare.com/rules/page-rules/troubleshooting/general/index.md): Page Rules の設定でよくある問題を解決します。 ## URL 正規化 - [URL 正規化](https://developers.cloudflare.com/rules/normalization/index.md): 受信リクエストの URL を、ほかの Cloudflare Rules に届く前に正規化します。 - [URL 正規化の例](https://developers.cloudflare.com/rules/normalization/examples/index.md): 受信リクエストの URL に対して、URL 正規化の各設定がどう影響するかを示す例です。 - [URL 正規化の仕組み](https://developers.cloudflare.com/rules/normalization/how-it-works/index.md): URL 正規化が、ルール評価の前に受信リクエストの URI をどのように書き換えるかを説明します。 - [ダッシュボードで URL 正規化を設定する](https://developers.cloudflare.com/rules/normalization/manage/index.md): Cloudflare ダッシュボードで URL 正規化を設定する方法です。 - [URL 正規化の設定](https://developers.cloudflare.com/rules/normalization/settings/index.md): 利用できる URL 正規化の種類と設定です。 ## リクエストのトレース - [リクエストのトレース](https://developers.cloudflare.com/rules/trace-request/index.md): Cloudflare 上でリクエストをトレースし、どのルールが一致して適用されるかを確認します。 - [Cloudflare Trace の変更履歴](https://developers.cloudflare.com/rules/trace-request/changelog/index.md): Trace リクエストの最新の更新と変更を確認します。 - [Cloudflare Trace を使う](https://developers.cloudflare.com/rules/trace-request/how-to/index.md): ダッシュボードと API で Cloudflare Trace を使う方法を説明します。 - [Cloudflare Trace の制限](https://developers.cloudflare.com/rules/trace-request/limitations/index.md): Trace 機能を使うときの既知の制限です。 ## Rules の変更履歴 - [Rules の変更履歴](https://developers.cloudflare.com/rules/changelog/index.md): Cloudflare Rules 機能の最新の更新と変更を確認できます。 ## reference - [Rules 言語](https://developers.cloudflare.com/ruleset-engine/rules-language/index.md): 式とフィールド向けの Cloudflare Rules 言語リファレンスです。 - [Page Rules 移行ガイド](https://developers.cloudflare.com/rules/reference/page-rules-migration/index.md): Page Rules から現行の Cloudflare Rules へ移行します。 - [Rules のトラブルシューティング](https://developers.cloudflare.com/rules/reference/troubleshooting/index.md): Rules 機能でよくあるトラブルシューティングのシナリオを確認します。