---
title: "Block Unwanted Events"
description: "Use Event Block Rules to exclude specific events When you want to exclude website traffic from being tracked in your server side container, (e.g. internal traffic, traffic from a specific country, specific pages, currencies, or for example 0 value purchases) you can use the Event Block Rules to do so. Getting started You find the Event Block Rules under the Settings tab when logged in to your Tracklution container. Scroll down and click + Create Rule . select_block You can ch…"
slug: "block-unwanted-events"
category_slug: "tracking-guides"
category_name: "Tracking Guides"
order: 3000000052
published_at: "2025-12-16T07:47:54+00:00"
updated_at: "2026-04-14T12:00:41+00:00"
language_code: "en-US"
tags: []
---

## Use Event Block Rules to exclude specific events

When you want to exclude website traffic from being tracked in your server-side container, (e.g. internal traffic, traffic from a specific country, specific pages, currencies, or for example 0 value purchases) you can use the Event Block Rules to do so.

### Getting started

You find the Event Block Rules under the Settings tab when logged in to your Tracklution container. Scroll down and click **+ Create Rule**.

![select_block](https://support.tracklution.com/kb/agent/attachment/article/52/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjE1MiIsIm9yZ2lkIjoiMTQ3NzgiLCJpc3MiOiJzdXBwb3J0LnRyYWNrbHV0aW9uLmNvbSJ9.cBnClrjEwYOlVP1CD5IAwv9cKleC21VKUfiSJsZ7GUo)

You can choose to either **select specific events** that you want your rule to block, or you can click the toggle **Block all events** to make your rule dynamically apply to all currently tracked events, and for any event you may track in the future. You can use AND rules to include multiple conditions for one rule.

### Types of block rules

There are three category-types of block rules you can configure:

- Event based block rule
    - These types of rules let you block events based on information present in the event, like URL, purchase value, currency etc.
- List based block rule
    - These rules apply to predefined lists of information to block events, like the IP address of your office, specific emails of logged in users, zip codes etc.
- Webhook parameter
    - These rules apply when a Webhook parameter that you have defined contains or equals a specific value, or is empty.

#### URL (event based) block rule

The URL block rule option looks at the full URL with the event, meaning you can condition your block rule to anything in the URL, e.g. subdomains, paths, queries, fragments, or even attributes. If you want to block a specific URL path for example, then you can put the **/** before the path, like this **/your-page-path-here**. If you want to block a specific fragment you can use **#page-fragment-here**, and so on. Keep in mind that if you want to block specific queries, be aware that not all queries start with **?**, they might start with **&**. Instead, write the full query, like this **my-query=my-blocked-query-value**.

#### List based block rules

While both **Webhook parameter** and **Event based** block rules can be configured directly with the user interface, the list based block rules require you to upload a `.csv` file containing the predefined values you want to include in your block rule.

**Example**:

If you want to use a list of IP addresses from your offices and remote team members to exclude this internal traffic from being tracked by your server-side container, you can list the IP addresses separated by comma, then save as `.csv` and upload. This is easily achieved in Microsoft Excel or Google Sheets.

Choose **IP address** as rule type and click **Select List**.

![select_block_list](https://support.tracklution.com/kb/agent/attachment/article/52/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjE1MyIsIm9yZ2lkIjoiMTQ3NzgiLCJpc3MiOiJzdXBwb3J0LnRyYWNrbHV0aW9uLmNvbSJ9.mOn0inaKGa73FFO6dHZH93SU-bFo74I8EEwhrJ5PEHY)

You can create a list of your IP addresses in a sheet like this:

| 192.0.2.14 |
| --- |
| 198.51.100.73 |
| 203.0.113.201 |

Then click **Save as..**, select `.csv` and upload it to your Event Block Rules.

You can later **remove**, **deactivate**, or **add** more IP addresses to your uploaded list. Adding is done by clicking **Fill** on your list and uploading a new `.csv` file. Already recorded IP addresses will remain, and any new IP address will be added.
