How do I exclude traffic from an IP or a range of IP addresses?
To exclude all traffic from a given IP or IP range, follow these steps:
- Log into Matomo as a Superuser.
- Go to Matomo settings
> Measurables (Websites) > Settings.
- In the option, Global list of Excluded IPs, specify one IP address per line. Define a given IP address, or IP ranges (
132.4.3.*
or143.2.*.*
for example) to be excluded from being tracked on all websites. You can also use the CIDR notation for IP addresses, for example:112.4.2.0/24
, or2001:db8::/32
.
When you exclude visits from these IP addresses, it will only apply to new visits going forward. Historical visits from these IP addresses will not be deleted. Read more about other ways to exclude traffic for specific users.
Note: Even if you have enabled IP anonymisation, IP exclusion will still work as expected (the IP exclusion occurs before the IP is anonymised).