---
title: "セットアップSitecore IP Geolocation"
slug: "set-up-sitecore-ip-geolocation"
abstract: "Sitecore IP Geolocationサービスをインストールして有効化してください。"
---
# セットアップSitecore IP Geolocation

このSitecore IP Geolocationサービスは、リバースDNS検索で得られる情報を超えたIPアドレスの所在地と所有者に関する情報を提供します。IP Geolocation情報には、訪問者の国、州、市、登録会社名が含まれます。

IP Geolocationの検索機能を使って、訪問者の位置に応じて異なるコンテンツを表示する条件付きレンダリングやパーソナライズルールを作成できます。

## システム要件の設定

Sitecore IP GeolocationモジュールはSitecore Experience Manager(CMS専用モード)と完全に互換性があります。

-   Sitecore IP Geolocationはデフォルトで含まれています。つまり、 [Sitecore IP Geolocationサービスに加入](https://doc.sitecore.com/xp/ja/developers/103/sitecore-experience-manager/set-up-sitecore-ip-geolocation.html#UUID-beee7e38-fad7-500c-e275-ffe0d27576ab_id__Subscribe_to_the "Subscribe to the Sitecore IP Geolocation Service")するだけで十分です。
-   Standalone(オールインワン)、Content Delivery、Processing サーバーでIP Geolocationを有効にしてください。

## Sitecore IP Geolocationサービスを起動してください

Sitecore XPでSitecore IP Geolocationサービスを有効化するには、Sitecoreサポートポータルを通じてSitecore IP Geolocationサービスに加入する必要があります。Sitecore IP Geolocationサービスは無料で、月間無制限の検索が可能です。

\\App\_Config\\Sitecore\\ DetectionServices.Location\\ Sitecore.CES.GeoIp.configファイルで、[すべてのCDインスタンス](https://doc.sitecore.com/xp/en/developers/102/platform-administration-and-architecture/configure-multiple-content-delivery-instances.html)でGeoIp.PerformLookupプロパティをtrueに設定します。

## Sitecore IP Geolocationサービスに登録してください

Sitecore IP Geolocationサービスを有効化した後、Sitecoreサポート&セルフサービスポータルにアクセスし、サブスクリプションに登録する必要があります。

1.  [Sitecore](https://support.sitecore.com/)[サポート&セルフサービスポータル](https://support.sitecore.com/)にアクセスし、「**サービスリクエストを作成**」をクリックします。
    
    > !注ポータルに表示されるウィジェットの数は、あなたの権限レベルによって異なります。
    
    ![The Self-Service portal](https://doc.sitecore.com/api/markdown-image/xp/ja/developers/103/sitecore-experience-manager/images/CreateServiceRequests.png)
    
2.  **カタログ**欄で*IP Geolocation*カタログを選択し、**カテゴリ欄で***Operational Services*カテゴリを選択します。
    
    ![Select an agreement](https://doc.sitecore.com/api/markdown-image/xp/ja/developers/103/sitecore-experience-manager/images/ActivteIPGeoSubscription.png)
    
3.  **IP Geolocation Agreement**のダイアログに、アカウントと契約の詳細を入力します。
    
    ![Enter account and contract](https://doc.sitecore.com/api/markdown-image/xp/ja/developers/103/sitecore-experience-manager/images/IPGeoAgreement.png)
    
4.  購読を確定するには、**[Sitecore ® IP Geolocation利用規約](https://doc.sitecore.com/resources/sitecore-ip-geolocation-terms-of-service.pdf)**に同意してください。
    
    ![Read Terms of Service](https://doc.sitecore.com/api/markdown-image/xp/ja/developers/103/sitecore-experience-manager/images/TermsOfService.png)
    

これで購読が完了しました。

> !注サブスクリプションを有効化した後、システムがライセンス情報を更新するまでに時間がかかる場合があります。システムが更新されると、Sitecore IP Geolocationサービスは自動的にジオロケーション検索を行います。

## ファイアウォールの設定

Sitecore IP GeolocationサービスはContent Delivery(CD)ロールで動作します。もしCDサーバーからの送信トラフィックがファイアウォールによって制限されている場合は、以下のURLへのHTTPSアクセスを許可するルールを追加してください:

-   geoIp-ces.cloud.sitecore.net
-   Discovery-ces.cloud.sitecore.net

## プロキシサーバーを使った

リバースプロキシサーバーからSitecoreインスタンスへのリクエストが来て、Sitecoreに元のクライアントIPアドレスを追跡させたい場合は、以下の設定を設定してください:

> -   \\App\_Config\\Sitecore\\DetectionServices.Location\\Sitecore.CES.GeoIp.configにおいて、集合CES.GeoIp.ForwardedRequestHttpHeader = X-Forwarded-For
> -   \\App\_Config\\Sitecore\\Marketing.Tracking\\Sitecore.Analytics.Tracking.configにおいて、集合Analytics.ForwardedRequestHttpHeader = X-Forwarded-For

これにより、転送されたクライアントのIPアドレスがGeoIP関連の処理および分析追跡の両方で一貫して使用されることが保証されます。