Features
Traffic Filtering
Block unwanted traffic by IP address or country to keep your analytics clean.
Overview
Traffic filtering allows you to exclude certain visitors from your analytics data. This is essential for:
- Excluding your own visits while developing or testing
- Filtering out known bot traffic
- Blocking traffic from specific countries
- Removing spam referrers
- Excluding office or team IP addresses
IP Blocking
Block specific IP addresses or ranges from being tracked.
Supported Formats
| Format | Example | Description |
|---|---|---|
| Exact IP | 192.168.1.100 | Blocks a single IP address |
| CIDR Range | 192.168.1.0/24 | Blocks all IPs in a subnet |
| Wildcard | 192.168.*.* | Blocks matching pattern |
| IPv6 | 2001:db8::1 | Full IPv6 address support |
Adding Blocked IPs
- Go to your site's Settings page
- Find the "IP Blocking" section
- Enter an IP address or range
- Click "Add IP"
- Save your settings
Common IP Blocking Scenarios
# Block your home IP 98.234.56.78 # Block your office network 10.0.0.0/8 # Block a range of IPs 203.0.113.0/24 # Block with wildcards 192.168.1.*
Finding Your IP Address
To find your current IP address:
- Search "what is my IP" in any search engine
- Or use a service like
ifconfig.me - Note: Your IP may change if you don't have a static IP
Country Blocking
Block all traffic from specific countries using ISO country codes.
How It Works
When country blocking is enabled:
- We determine the visitor's country using IP geolocation
- If the country matches a blocked code, the pageview is not recorded
- The visitor still sees your website normally
Adding Blocked Countries
- Go to your site's Settings page
- Find the "Country Blocking" section
- Select countries to block from the list
- Or enter ISO country codes (e.g., RU, CN)
- Save your settings
Common Country Codes
| Code | Country |
|---|---|
US | United States |
GB | United Kingdom |
CA | Canada |
DE | Germany |
FR | France |
AU | Australia |
CN | China |
Important Considerations
Filtering is Immediate
Once you add an IP or country to your block list:
- New pageviews from blocked sources are not recorded
- Historical data is not affected
- Changes take effect immediately
Filtering Does Not Block Access
Traffic filtering only affects analytics collection:
- Blocked visitors can still access your website
- They just won't appear in your analytics
- For actual access blocking, use your web server or CDN
VPN and Proxy Considerations
Be aware that:
- Users with VPNs may bypass country blocks
- IP blocking works on the visible IP, not the actual origin
- Proxy servers may cause different IP addresses
Best Practices
- Block development traffic: Add your office and home IPs to exclude internal visits
- Use CIDR for networks: Block entire office networks with CIDR notation
- Document your blocks: Keep notes on why each IP/country is blocked
- Review periodically: Remove outdated blocks when no longer needed
- Don't over-block: Only block what's necessary to keep data clean
API Access
Manage traffic filters via API by updating site settings:
PUT /sites/{site_id}
{
"blocked_ips": [
"192.168.1.100",
"10.0.0.0/8"
],
"blocked_countries": [
"CN",
"RU"
]
}