3. Google Chromeを使った動作確認

  1. クライアントPCでGoogle Chromeブラウザを起動します。右上から [ シークレットモード ] で起動させます。

../_images/Picture12.png
  1. 右上から [ その他のツール ] - [ デベロッパー ツール ] をクリックします。

../_images/Picture22.png
  1. [ Sources ] – [ Overrides ] - [ + Select folder for overrides ] をクリックします。

../_images/Picture31.png
  1. 任意のフォルダを作成し、 [ フォルダーの選択 ] をクリックします。

../_images/Picture4.png
  1. 以下のようにフォルダが作成されていることを確認します。

../_images/Picture51.png
  1. 対象URLにアクセスし、 [ Network ] タブをクリックします。対象の通信を選択し、右クリックで [ Override content ] を選択します。

../_images/Picture61.png
  1. [ Sources ] – [ Overrides ] に戻ると作成したフォルダ配下に対象サイトのトップページ、本書では [ index.html ] が表示されます。

../_images/Picture7.png
  1. CSD JSが最初に読み込まれるように、CSD JSと不審なドメインに対するJSスニペットを挿入します。

../_images/Picture8.png
<不審なドメインに対するJSスニペット サンプル>
<script>(function() { var s = document.createElement('script'); var domains = ["ganalitis.com", "ganalitics.com", "gstatcs.com", "webfaset.com", "fountm.online", "pixupjqes.tech", "jqwereid.online"]; for (var i = 0; i < domains.length; ++i) { s.src = 'https://' + domains[i]; } })();</script>
  1. 最後に保存することで、 [ *index.html ] から [ index.html ] になります。

../_images/Picture9.png
  1. 対象サイトに数回アクセスを実施します。

../_images/Picture10.png

次章でXC CSDで、検知できているかを確認します。