---
title: /adblock settings
description: Configure link and invite blocking.
---
## Overview

`/adblock settings` opens an interactive dashboard for blocking unwanted links in messages and invite links in member profiles.

## Required Permissions

- **Administrator**

## Subcommands

### settings

No options. Running the command opens a dashboard with four pages: Overview, Limits, Punishment, and Allowlist.

## Dashboard settings

The dashboard is split into four pages: Overview, Limits, Punishment, and Allowlist.

### Overview page

A master toggle turns ad and link blocking on or off.

Chat rules (select any combination):

| Rule | Default | Blocks |
|------|---------|--------|
| Discord invites | On | Discord server invite links |
| Shortened URLs | On | Link shorteners such as bit.ly |
| Unsafe links | On | Known phishing and malware links |
| Bare domains | Off | Plain domains with no `http://` prefix |
| All links | Off | Every link, regardless of type |
| Trusted-only mode | Off | Everything except domains on your trusted list |

Profile rules (select any combination):

| Rule | Default | Blocks |
|------|---------|--------|
| Invite in nickname | Off | Members with an invite link in their server nickname |
| Invite in status | Off | Members with an invite link in their custom status |
| Instant kick | Off | Kicks immediately instead of warning first. Requires the nickname rule to also be on. |

### Limits page

Set how many rule violations within a short window trigger punishment, separately for chat rules and profile rules (default 1 for each, up to 50).

### Punishment page

Choose the response: mute (default), kick, ban, or quarantine.

- If mute is selected, choose a duration from presets (1 minute, 5 minutes, 15 minutes, 1 hour, 28 hours) or enter a custom duration up to 7 days.
- If quarantine is selected, choose the role to apply. BetterAntiSpam creates the role automatically if it doesn't already exist.

### Allowlist page

- Add channels, roles, or users exempt from link blocking (up to 40 each).
- Add trusted domains that bypass link detection, entered as a comma or space-separated list.

## Behavior

- Turning on a profile rule triggers a one-time scan of existing members' nicknames and statuses.
- A **Reset all** button restores every setting to its default after a confirmation step.
- Only the admin who opened the dashboard can interact with it.