> 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.
