> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/dast-sfesu/attack-surface-scanning/add-or-ignore-subdomains-in-attack-surface.md).

# アタックサーフェスにサブドメインを追加または無視する

デフォルトでは、Aikido はドメインに関連するサブドメインを自動的に検出します。場合によっては、サブドメインを手動で追加したい（自動検出されないアセット向け）ことや、サブドメインを除外したい（スコープ外のアセットやスキャン不要のアセット向け）ことがあります。

## なぜサブドメインを管理するのですか？

* サブドメインを追加する: api.example.com のような重要なアセットがセキュリティスキャンに含まれるようにします。
* サブドメインを除外する: ノイズを減らし、第三者のサービスやスコープ外のサービス（別の場所でホストされているテスト環境やマーケティングサイトなど）のスキャンを避けます。

## サブドメインを追加する

1. ドメインの概要ページに移動します。
2. サブドメインタブに移動します。
3. 右上の「サブドメインを追加」をクリックします。<br>

   <figure><img src="/files/a2cf6c9893a433fbc1e2c9cf9ba9db8103d28ef0" alt=""><figcaption></figcaption></figure>
4. 監視したいサブドメインを入力します。<br>

   <figure><img src="/files/e40e4a0a398164f51e0ecf922faa3f5872362368" alt=""><figcaption></figcaption></figure>
5. 確認して、今後のスキャンに含めます。

## サブドメインを除外する

1. サブドメインタブで、一覧からサブドメインを見つけます。
2. アクションメニュー（右側の3つのドット）を開きます。<br>

   <figure><img src="/files/69a152ce5745fc97112b23fe1a0bfd6fdd7f8cd0" alt=""><figcaption></figcaption></figure>
3. 「サブドメインを除外」を選択します。
4. そのサブドメインは今後スキャンされなくなります。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/dast-sfesu/attack-surface-scanning/add-or-ignore-subdomains-in-attack-surface.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
