umami icon indicating copy to clipboard operation
umami copied to clipboard

Ability to filter local addresses out

Open jdtate101 opened this issue 1 year ago • 1 comments

Describe the feature or enhancement

Can you add some sort of filter to exclude certain IP addresses or ranges from the stats? I'm thinking about all local IP ranges. At the moment they get recognised as UNKNOWN, but still count in the visitor and hit totals, having them excluded would just show real visitors.

jdtate101 avatar Feb 14 '24 06:02 jdtate101

There's a runtime environment variable you could use IGNORE_IP = a comma-delimited list of IP addresses or ranges

For example IGNORE_IP = 10.0.1.0/24,192.168.1.200

Ranges are not mentioned in the docs (https://umami.is/docs/environment-variables) but they are supported.

Maxime-J avatar Feb 14 '24 13:02 Maxime-J