# Blocklist rules

Flag junk, spam and unwanted leads, events and people automatically or by hand, so routing skips them and your reports stay clean.

Source: https://support.rework.com/article/lead-blocklist

> **In plain words:** A **blocklist** is your "do not work this one" list. A **blocklist rule** tests every new lead, for example "the email ends in a throwaway domain", and **flags** the matches. A flagged lead is not deleted. It carries a **Blocklisted** badge and a reason, and Lead stops routing it to your team. You can also flag a single lead or a whole person by hand. New to these words? See [Lead basics: words to know](https://support.rework.com/article/lead-basics).

**Where to find it:** Lead > open a lead service > chevron next to its name > **Service settings** > **Data quality** > **Blocklist rules**. People rules: **Settings** > **Profile Blocklist**. **Who can use it:** administrators edit rules. Service managers see the list read-only. Anyone who can edit a lead can flag that lead by hand.

## What a flag does

When a lead matches a rule:

- It is **flagged, not rejected.** The lead is still created and you can open it. It shows a **Blocklisted** badge with the reason.
  
- **Routing skips it.** It is not assigned to a salesperson. The route trace for the lead says it was not matched because it is blocklisted. See [SLA reports and tracing a lead's route](https://support.rework.com/article/lead-sla-reports).
  
- You can find flagged leads in the lead list, or hide them. See "Find blocklisted leads" below.
  

> **Note:** Because flagged leads are still created, nothing is lost. If a rule was too strict, you can review the flagged leads and fix them.

## When rules run

- When a lead is **created or imported**.
  
- When a lead is **received from another Rework app**.
  
- On an event gateway, when an **event** is received. A matching event gets the status **Blocklisted** and is not routed. See [Event gateways](https://support.rework.com/article/lead-event-gateways).
  
- For profile rules: when a profile is created, or when a lead links to a profile.
  

Rules are checked in order, and **the first matching rule wins.** Only that rule's reason is shown.

## Add a rule

The rule list is shared by the whole workspace. Rules you add apply to all lead services, and a gateway's list applies to all gateways. That is why only administrators can change it. A notice at the top of the tab says "System-wide setting".

1. In Lead, open **Leads** in the left sidebar and pick your lead service.
   
2. Click the small arrow next to the service name, then **Service settings**.
   
3. In the left menu of the dialog, under **Data quality**, click **Blocklist rules**.
   
4. Click **Add rule**. A dialog titled **Add Blocklist Rule** opens. It creates a field rule: a test on one field of the lead.
   
5. Type a **Rule name**, for example "Block disposable emails".
   
6. Pick the **Field** to test, for example **Email**.
   
7. Pick the **Condition**.
   
8. Type the **Values**, separated by commas. For a length test, type a number instead (**Threshold**).
   
9. Click **Add rule**. You see "Rule created".
   

The conditions you can choose depend on the field:

| 
Kind of field

 | 

Conditions

 |
| --- | --- |
| 

Text

 | 

**Contains any of**, **Is one of**, **Starts with**, **Ends with**, **Length less than**, **Length more than**, **Is empty**

 |
| 

Number

 | 

**Equals**, **Greater than**, **Less than**, **Greater or equal**, **Less or equal**

 |
| 

Lists such as labels

 | 

**Matches any of**

 |
| 

Email

 | 

**Email domain is one of**, as well as the text conditions

 |

Worked example: you keep getting sign-ups from throwaway mailboxes.

- **Rule name:** Block disposable emails
  
- **Field:** Email
  
- **Condition:** Email domain is one of
  
- **Values:** mailinator.com, tempmail.com
  

From now on, any new lead whose email ends in either domain is flagged.

![The Blocklist rules tab with the System-wide setting notice](https://storage.googleapis.com/reworkv3-public/success/261015/78XMcunAzKRzEXPHMlgZBwSXUSXwQQ1wqu1jPc4biapzfHfAme9xTTG3CIelmbgK/img.XrtxkBdu6q5gCi3qtiJnlvGf9Aus30HAUA3prmrECw4j3lx7oNqbB3Ma83Y3JR49.png)

To change a rule, use **Edit** on its row, then **Update rule**. To delete one, use **Remove**.

> **Important:** Removing a rule does not un-flag leads it already flagged. Lead warns you: "Existing blocklisted objects are not automatically un-flagged." To clear them, remove the flag from each lead by hand (see below).

## Flag a lead by hand

Use this for one-off junk or a person who asked not to be contacted.

1. Open the lead.
   
2. Click the **⋯** menu and choose **Add to blocklist**.
   
3. Optional: type a reason in the box that asks "Why should this lead be blocklisted?". The reason goes into the lead's activity log.
   
4. Click **Add to blocklist**.
   

Lead notifies the lead's owner, salesperson, followers and collaborators, so nobody keeps working it by accident.

To undo it, open the lead, click **⋯**, and choose **Remove from blocklist**. It takes effect straight away.

![A lead detail screen with the Blocklisted badge beside the name](https://storage.googleapis.com/reworkv3-public/success/261015/31WIQmyyyBj8WNV6Q3u0r4yLfXRtp9paUYyiVvsFtmd7qd9AcV2RbB18649fI7rz/img.bVEcikOSUAVNpncBpllmb7zBjjfK6bpYlby7sBQ5aZkgaQtx73MDblpPk4MvC2k0.png)

## Find blocklisted leads

In the lead list, open **Filter** (or **Advanced filters** inside a service) and look for the **Blocklist** section. Choose:

- **Only blocklisted** to review everything that was flagged.
  
- **Exclude blocklisted** to work only with the leads you want.
  

## Block a whole person

A **profile** is one person, and a lead is one enquiry from them. See [Profiles and deduplication](https://support.rework.com/article/lead-profiles-and-deduplication). Blocking the profile flags every future lead from that person.

- **By hand:** on a profile, click **Add to blocklist**, in the side panel or in the **⋯** menu of the full profile. Confirm "Blocklist this profile?". **Remove from blocklist** reverses it.
  
- **By rule:** open **Settings** in the left sidebar, then **Profile Blocklist**. The **Rules** tab holds profile rules. Click **Add rule** (administrators only). The note on the tab says rules run "when a profile is created or when a lead links to a profile".
  
- **To review:** the **Blocklisted profiles** tab lists everyone currently blocked, whether by hand or by rule. **Remove** takes a person off the list.
  

A lead linked to a blocklisted profile is flagged automatically, with the reason "Linked profile is blocklisted". The notice on the **Blocklist rules** tab says so: this happens regardless of the rules you define there.

## Troubleshooting

| 
Problem

 | 

Why it happens

 | 

What to do

 |
| --- | --- | --- |
| 

I cannot see **Add rule**

 | 

Only administrators edit the list

 | 

Ask an administrator, or use **Add to blocklist** on the lead.

 |
| 

Leads you expected are not flagged

 | 

No rule matches, or an earlier rule matched first

 | 

Check the rule's field, condition and spelling of the values.

 |
| 

Leads are flagged but I did not add a rule

 | 

A profile rule, or the person is blocklisted

 | 

Open the lead's reason, then the profile.

 |
| 

Leads still show as blocklisted after I removed a rule

 | 

Removing a rule does not un-flag old leads

 | 

Use **Remove from blocklist** on each lead.

 |
| 

A flagged lead was never assigned

 | 

Routing skips blocklisted leads

 | 

Remove the flag, then ask a service manager to run the router on the lead. See [Routing and distribution](https://support.rework.com/article/lead-routing-and-distribution).

 |
| 

Imported leads exist but are flagged

 | 

Rules flag imported leads instead of rejecting them

 | 

Filter by **Only blocklisted** to review them.

 |

More help: [Fix it by symptom](https://support.rework.com/article/lead-fix-by-symptom) and [Common errors and fixes](https://support.rework.com/article/lead-common-errors).
