[Yandex Cloud documentation](../../index.md) > [Yandex Smart Web Security](../index.md) > [Step-by-step guides](index.md) > Required and recommended rules > Rule for blocking black addresses

# Rule for blocking black addresses

Smart Web Security has [pre-installed lists](../concepts/lists.md#yc-rules) of untrusted (black) IP addresses. These lists streamline traffic checking and block requests from unsafe or suspicious addresses. Also, you can add [custom blacklists](../concepts/lists.md#user-rules).

## Set up a rule for blocking black addresses {#black-list-rule}

{% list tabs group=instructions %}

- Management console {#console}

  1. In the left-hand panel, click ![image](../../_assets/console-icons/shield-check.svg) **Security profiles** and select the profile.
  1. Click ![image](../../_assets/console-icons/plus.svg) **Add rule** and do the following in the window that opens:

      1. Enter a name for the rule, e.g., `block-by-list`.
      1. Set a higher **Priority** than that of the Smart Protection rules, e.g., `9100`.
      1. Enable **Only logging**.
      1. Specify the rule settings:

          * **Type**: `Base`.
          * **Action**: `Deny` or `Show CAPTCHA`.
          * **Traffic**: `On condition`.
          * **Conditions**: `IP`.
          * **Conditions for IP**: `IP belongs to the list`.
          * **IP belongs to the list**: Add [pre-installed lists](../concepts/lists.md#yc-rules) for filtering or your own blacklists. Requests from these addresses will be blocked.

          {% note tip %}

          We recommend that you immediately add these pre-installed blacklists: `is_ddoser`, `is_tor`, and `is_anonymous`.

          {% endnote %}

      1. Click **Add**.

{% endlist %}

#### Useful links {#see-also}

* [Managing lists](list-create.md)
* [Creating a security profile](profile-create.md)
* [Adding a rule to a security profile](rule-add.md)