# AdBlock detection: target visitors who use an ad blocker

Canonical URL: https://support.optimonk.com/en/articles/adblock-detection

With the **AdBlock detection** rule you can show a campaign only to visitors who use an ad blocker — for example to let them know it is worth switching it off on your site for a better experience — or only to visitors who don't use one.

In the rule picker it appears as **AdBlock detection** — *Visitors who use an ad blocker*.

---

## How do I set it up?

1. Open **Campaigns** in the left menu and click the campaign you want to target.
2. Open the campaign's **Settings** tab.
3. Under **Who should see the popup**, click **Add new rule**.
4. Under **Visitor**, pick **AdBlock detection**.
5. Complete the sentence **The visitors who** … **an ad blocker (AdBlock, AdBlock Plus, etc.)** by choosing **use** or **don't use**. A new rule starts with **use**.
6. Click **Save** in the rule window, then **Save changes** in the bar at the bottom of the page.

The rule card sums it up: *Only for visitors who use an ad blocker* or *Only for visitors who don't use an ad blocker*.

---

## Good to know

- Detecting the ad blocker takes a moment after the page loads. Until it has finished, the rule doesn't match.
- Rules are combined with AND: the visitor has to match this rule and all the other rules of the campaign.
- The rule can be added once per campaign. To change it later, click its card.
