# Blocking

Spam visitors can be blocked based on their ID or public IP address.

* **Block by ID** – The visitor is prevented from initiating a chat from the same browser unless they clear cookies or use incognito/private mode. In that case, starting a chat will still be possible.
* **Block by IP** – The visitor is blocked based on their IP address. Note that in some locations/offices, multiple people may share the same public IP, so caution is needed to avoid accidentally blocking other users.
* **Expires at** – After the block period ends, the visitor is automatically unblocked. By default, this is one day, but the agent can choose any duration.
* **Agent Name** – The name of the agent who initiated the block.

Go to the **Blocked** page and click the **lock icon** to block or unblock a visitor.

<figure><img src="https://3442820265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpnyVksmZW86N5iVDiUvg%2Fuploads%2FLa8XVh5KFYVna2YD6iyx%2Fimage.png?alt=media&#x26;token=b73e82cf-fb4b-49c6-87ac-e3f80baf687c" alt=""><figcaption></figcaption></figure>

**Block a Customer by IP:** Go to the **Blocked** page, click the **Block Customer** lock icon, and select **Block by IP**.

**Block a Customer by ID:** During a live chat, click the **Gear** button and block the visitor.

{% columns %}
{% column %}

<figure><img src="https://3442820265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpnyVksmZW86N5iVDiUvg%2Fuploads%2Fz6sMFHyYKL8fhmUaDnjT%2Fimage.png?alt=media&#x26;token=ea873993-e7d4-4956-ad05-d2b03bdaf647" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

<figure><img src="https://3442820265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpnyVksmZW86N5iVDiUvg%2Fuploads%2FHRzMEQFF32LCH9bMwuY6%2Fimage.png?alt=media&#x26;token=4d3c2f57-a239-48d6-b814-bfb45e589c65" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}
