Excluding bots and internal traffic from Mautic tracking: what it changes and who needs it
Marketing and analytics teams often see visit counts that look inflated, a growing pile of anonymous records and engagement data that is hard to trust. Mautic offers ways to filter some of that traffic before it is recorded: a known bots list, excluded IP addresses and, for anonymous visitors, the option to ignore certain 404 hits. These filters change what Mautic stores and reports, so they are a data decision as well as a reporting one. Before turning anything on, confirm in your Mautic version's tracking settings exactly which filters exist, what each one matches and whether existing records are affected or only new hits.
The choice matters most for segments and campaigns, because they act on the same tracking data. A crawler that repeatedly loads pricing pages can make a anonymous visitor look highly engaged, and that activity can feed segment filters or campaign triggers that send follow-up email to no one. Excluding internal IP addresses can keep staff testing out of the data, but Mautic's documentation advises against excluding office IPs, so weigh that guidance against your own network setup. Ignoring 404 hits also hides broken links and misdirected campaign URLs that marketing needs to find, so decide whether that trade-off is acceptable before you enable it.
Marketing operations should own this decision, since it changes the contact data their segments depend on. Analytics should confirm how the filtered numbers will be reported, and IT or security should review any IP lists because they depend on how traffic reaches the site, including proxies and load balancers. Involve your privacy lead as well, because IP addresses can be personal data under the rules you operate under. Record the current settings, make one change at a time and verify it with a visit from a known office network and a test bot before relying on the new counts.
How a page hit moves from the visitor's browser to a recorded Mautic event
The path starts when a visitor or crawler loads a page carrying the tracking script, which sends a hit to Mautic. Mautic then checks the hit against its known bots list and excluded IP addresses, and the 404 handling decides whether an anonymous hit is kept or dropped. Treat this order as a working model: confirm the exact evaluation sequence and how a reverse proxy or CDN supplies the client IP against the Mautic version you have installed, because a wrong client IP makes IP exclusions unreliable.
Decision path a page hit follows before Mautic records it, to confirm against your installed version.
Which exclusion control fits which traffic problem
This table compares four ways to keep bots, internal visits and error hits out of Mautic tracking data. Read each row for the traffic it targets, the legitimate visits it can remove and who keeps it current. Confirm the settings location and field names in the Mautic version you run before you change anything.
| Control | Traffic it targets | What it can wrongly remove | Who maintains it and when it fits |
|---|---|---|---|
| Known bots list | Crawlers and automated agents that identify themselves by user agent | Unusual or legitimate tools whose user agent matches a listed pattern | Shipped with Mautic; confirm how updates reach your version. Fits most sites as a baseline. |
| Excluded IP addresses | Specific servers, monitoring probes or scanners with fixed IP addresses | Real visitors who share an IP through a carrier, VPN or corporate proxy | Maintained by your team. Fits fixed, known sources such as your own uptime monitor. |
| Office or staff IP exclusion | Visits from employees working on the company website | Prospects and customers on the same network, and staff visits that matter for campaign testing | Maintained by your team. Mautic advises against it, so use only after weighing the loss of genuine visits. |
| Ignoring 404 hits from anonymous visitors | Broken links, scanners probing for missing paths and crawlers requesting non-existent pages | Visitors who reached a real page that was mistakenly missing, which hides a site fault | Your team controls the rule and its scope. Fits when 404 noise fills visitor records without adding marketing value. |
Why Mautic advises against excluding office IP addresses
Excluding an office or VPN IP address can hide real prospects and customers. Many people share one outbound address at a company, and many staff members route through the same VPN. When that address is on the exclusion list, visits from prospects, customers and partners at the same organization are dropped along with staff activity. The exclusion also weakens IP-based visitor identification. If Mautic cannot record the address, it cannot match an anonymous visit to a company or a known contact. Before you add any corporate range, check whether it is an egress address for the whole company and who else uses it.
Teams still exclude internal traffic in a few cases, most often when staff test pages that are live on the public site. Internal QA pages, unfinished campaign landing pages and staging forms are typical examples. Excluding the range for those pages can look like the simplest fix, but it removes every visit from that address, not only the testing. Confirm with the Mautic documentation for your release line how the exclusion setting applies, and whether it affects tracking, identification or both, before you rely on it for a test.
Better options separate staff activity from prospect activity without touching the shared address. Run tests in a separate Mautic instance or on a test domain with its own tracking code, so test records never reach production reports. On production sites, ask staff to use a logged-in session or a browser profile tied to a known internal contact, so their visits attach to a record you can filter out later. Cookies can be cleared or blocked, so treat this as a filter for reporting, not a control. Review the chosen approach with the people who own campaign reporting.
What goes wrong when filters remove too much or too little
Bot and internal-traffic filters fail in two directions: they remove real visitors or they let noise through. The four risks below share one cause, which is that the filter rules are not checked against the traffic they actually see, so each card pairs a symptom with the check that catches it.
Over-filtering hides real engagement
A known-bots entry or an excluded IP range that is too broad can drop genuine prospects, especially when a list matches on a user agent fragment that real browsers also send. The symptom a marketing ops lead notices is page visits falling for one audience while form fills and email clicks stay steady. Check this by comparing excluded hits against a sample of raw log lines for the same period and confirming that the matched visitors are not people who later convert.
Under-filtering inflates counts
Crawlers that do not identify themselves as bots pass straight into tracking, and they can create anonymous visitor records that look like engaged audiences. The symptom is a spike in page views or sessions from a single network or at odd hours, sometimes followed by segment membership changes that trigger campaigns. Check this by reviewing the top visiting IPs and user agents each week and confirming that recurring high-volume sources are either excluded or explained.
Proxies and CDNs send the wrong IP
When Mautic sits behind a load balancer, reverse proxy or CDN, the address it records may be the edge server rather than the visitor. An IP-based exclusion then removes the wrong traffic, or removes nothing, and a single internal address can appear to explain most visits. Check this by loading the tracking page from a known external network and confirming that the IP shown in the visitor record matches your own address, not the proxy's.
Reports change midstream
Adding or removing an exclusion partway through a campaign changes the baseline, so week-over-week comparisons and campaign reports no longer describe the same audience. The symptom is a sudden drop or rise in traffic that coincides with a rule change rather than with the marketing activity. Check this by logging every filter change with its date and reviewing reports against that log before drawing conclusions about campaign performance.
Setting up bot and internal traffic exclusions in Mautic
This sequence sets up bot and internal IP exclusions in a way you can check at each stage. It starts from a recorded traffic baseline and ends with test visits that show which traffic Mautic records and which it ignores.
Confirm the Mautic version and settings location
The platform team checks the installed Mautic version in the admin area and compares it with the release lines on the Mautic releases page to confirm it is still supported. Setting names and menu locations for tracking can change between releases, so the team finds the bot list and IP exclusion fields in its own installed version before editing anything. Done when a written note records the version, the PHP version and the exact settings path, and a second person can open the same screen.
Record the current traffic baseline
Before any change, the marketing operations owner exports counts for a fixed window: anonymous contacts, identified contacts, page hits and the most common user agents and IP addresses in recent visits. Take the snapshot when the scheduled cron jobs for segments and campaigns have run, so the numbers are not moving during the export. Done when the export is saved with a timestamp and another person can reproduce the same totals from the same report.
Agree the exclusion list with named owners
Each proposed entry gets an owner and a reason. Marketing operations approves bot user agents, the IT or network team owns office, VPN and data center ranges, and the web team owns uptime monitors and crawlers that load tracked pages. Mautic's guidance advises against excluding office IP addresses in general, because visitors from a shared network can be lost from tracking, so confirm the current wording in the documentation before approving any range. Done when the list is signed off with one owner and one reason per line.
Configure the bot list and IP exclusions
An administrator enters the approved user agent patterns in the bot list field and the approved addresses or CIDR ranges in the IP exclusion field, one entry per line. Changes go in one category at a time, so any side effect can be traced to a single change. The administrator saves each change and records it in the change log with the approver's name. Done when the settings screen shows exactly the approved entries with no typos and the change log matches the sign-off list.
Confirm the client IP the server sees
When Mautic sits behind a load balancer, reverse proxy or CDN, the address it reads may be the proxy's address, which makes IP exclusions match the wrong traffic. The platform team sends a request from a known public address and compares the IP recorded on that visit with the expected address. Forwarded-header and trusted-proxy settings depend on the web server and installed version, so the team confirms them there. Done when the recorded IP matches the test client's public address.
Verify with test visits from known sources
The team runs three test visits: one from an excluded address, one with an excluded bot user agent set through a request header such as
curl -Awith a test string, and one control visit from an ordinary browser that is not excluded. It compares visit and contact counts with the baseline. Expected result: the excluded visits create no page hits or contacts, and the control visit is recorded. If the results differ, the team reverts the last change and reviews it. Done when the results are written down for each test.Schedule a recurring exclusion review
Office networks, VPN ranges, monitoring tools and crawlers change over time, so the owners review the list on a fixed cadence and after network or hosting changes. Each review repeats the baseline comparison and the test visits from the verification step. Done when the review date, the owner and the outcome are recorded in the same log used for the original sign-off.
How exclusions behave on direct, proxied and multi-site setups
When browsers connect straight to the web server that hosts the tracked site, the server sees the client address on the TCP connection, and that is the address the tracking request carries. This is the simplest case, and an IP exclusion matches what you expect. The risk is still in the list itself: a single office address may be shared by many staff and by visitors who happen to be on the same network, and a VPN exit may hide where people really connect from.
- Connection address: The tracking request comes from the visitor's public IP, so exclusions match the address you enter.
- Shared office ranges: Excluding an office range also removes any prospect who browses from that network.
- VPN and remote access: Staff on a corporate VPN may appear with the VPN exit address, which may or may not be the one you excluded.
- Dynamic residential addresses: Home IPs change, so an exclusion for a staff member's home address expires without warning.
- Test before saving: Load the site from the excluded network and confirm the hit is recorded or skipped as you intended.
Confirm with the network team which public addresses office and VPN traffic actually uses before you add any entry.
When a reverse proxy, load balancer or ingress controller sits in front of the site, the web server often sees the proxy's address instead of the visitor's. Unless the proxy passes the original client address in a forwarding header and the application trusts it, every visitor can look like the same internal IP. Excluding that internal address then removes all tracking, while a missing header means nothing is excluded at all. Whether Mautic reads the forwarded address depends on the server and proxy configuration in your environment.
- Proxy address seen: The web server may record the load balancer's private IP for every request.
- Forwarded headers: The client address usually arrives in a forwarding header, which must be trusted only from your own proxy hops.
- Mixed results: Some requests may carry the forwarded address and others may not, depending on routing or health checks.
- Private ranges: Excluding a private range such as an internal subnet can remove legitimate traffic if the proxy is misread.
- Spoofing risk: Accepting forwarded headers from untrusted clients lets visitors fake an excluded address.
Ask the web or platform team which header the proxy sets, which hops are trusted, and what address appears in Mautic's contact or visit records after a test request.
A content delivery network often terminates the visitor connection at its edge and then fetches content from your origin. Depending on configuration, the origin may see only the CDN's addresses, and a bot filter may be applied at the edge before any request reaches your server. Tracking requests can also be cached or served from edge locations, which changes what reaches Mautic and when. Exclusions written against origin addresses therefore may not match what visitors generate.
- Edge addresses: The origin may see CDN node addresses, which are shared by many unrelated visitors.
- Edge bot controls: Some CDNs block or challenge automated traffic before it reaches the site, which reduces what the bot list needs to catch.
- Caching effects: Cached pages may not trigger the tracking script on every view, so visit counts can differ from origin logs.
- Client address headers: The CDN usually supplies the visitor address in its own header, which must be mapped correctly.
- Bypass paths: Requests to the origin directly, such as from monitoring tools, may appear without the CDN layer.
Confirm with the CDN administrator which headers carry the client address, which bot rules run at the edge, and whether the tracking script path is cacheable.
A staging or QA copy of a website that loads the same tracking script can send test visits into the production Mautic instance. Those visits may create contacts, page hits and campaign triggers that look like real prospects. Excluding the staging server's address helps only if it reaches Mautic from a stable address, and it does not stop tests from QA laptops on other networks. The cleaner approach is usually to separate the tracking code or the Mautic instance by environment, which is a design decision to make with the web and marketing teams.
- Test contacts: Automated tests and manual reviews can generate contacts that enter segments and campaigns.
- Stable server addresses: A staging server with a fixed address is easier to exclude than laptops or cloud runners with changing addresses.
- Different tracking codes: Staging may load the production script, so the environment is not identified in the data.
- Campaign side effects: Test visits can trigger emails if campaigns act on page hits.
- Separate instance option: A non-production Mautic instance avoids mixing test and live records.
Confirm with the web team which environments load the tracking script and with the marketing team which campaigns would react to test activity before relying on any filter.
Privacy, data retention and security considerations for filtered tracking data
Decide what is stored for excluded and included hits before you change any exclusion list. IP addresses are personal data in many jurisdictions, so a bot or internal IP rule is also a data handling rule. Settle three things in writing: whether excluded hits are dropped at collection or recorded and then hidden, whether the IP address itself is kept for included anonymous visitors, and how long any retained tracking records remain in the database. Dropping hits at collection stores less personal data, but it also removes the evidence you would need to review a filter later. Keeping a short, documented retention window for excluded hits is often easier to defend than keeping them indefinitely. Confirm the exact behavior of your Mautic version and your IP handling settings in your own test instance, and take the result to your privacy lead rather than assuming it.
Treat the exclusion settings as security-sensitive configuration. Restrict who can edit the bot list, the excluded IP addresses and the tracking settings to a small named group, and use the Mautic user roles to limit that group to the permissions it needs. Record who changed what and when, using your own change log, configuration management or infrastructure-as-code process, because the application alone may not give you an audit trail for every settings change. Review access on a set schedule and when staff leave. An excluded IP range that an attacker or a former employee can add is a quiet way to hide their own visits from reporting.
Excluded records also interact with anonymous contact cleanup. If hits from excluded sources were never recorded, there is nothing to clean up, which is the simplest outcome. If they were recorded, decide whether they feed anonymous contact creation, and make sure your cleanup jobs and retention periods cover them so they do not accumulate. Map these decisions to your obligations by reviewing the Mautic compliance content on consent, preferences and tracking, and have your legal or compliance team confirm the final retention periods. Document the decisions so an auditor or data protection officer can trace each rule back to a stated purpose.
Limits to confirm in your Mautic version and environment
Bot and internal traffic filtering in Mautic depends on the release you run, the list it uses and how your proxy passes client addresses. The checks below turn those assumptions into questions for the vendor docs or your own test results before you trust the numbers.
Known bots list contents and update source
Confirm what the known bots list contains in your release, where it comes from and how it gets updated. Ask whether the list ships with the package, whether it can be edited locally and whether updates arrive with patch releases. Record which user agents are matched, then test a sample of crawler hits against the list. A list you cannot describe makes your visitor counts impossible to explain to stakeholders.
Mautic cron jobs docsScope of excluded IP addresses
Ask whether excluded IP addresses apply only to page tracking hits, or also to form submissions, identification, segment filters, campaigns and reports. An exclusion that stops tracking but leaves contact records or campaign triggers untouched can still create confusing data. Write down each feature that should respect the exclusion and test it with a known internal address.
Handling of 404 hits from anonymous visitors
Confirm how Mautic treats 404 responses for anonymous visitors: whether it records them as page hits, whether it creates visitor records for them and whether any setting suppresses them. Scanners and broken links often generate 404s in bulk, so check the database growth after a test crawl. Document the behavior you observe in your release before you build reports on it.
IPv6 and address range support
Ask whether exclusions accept IPv6 addresses and CIDR ranges, and whether the matching logic handles both families. Office networks and cloud egress often use ranges rather than single addresses, so a single-address list will miss traffic. Test one address from each range you plan to exclude and confirm that the match holds.
Client IP detection behind your proxy
Confirm how Mautic determines the visitor address when traffic passes through a load balancer, reverse proxy or CDN. If the application reads the proxy address instead of the client address, exclusions will match the wrong hosts or none at all. Check which forwarded headers are trusted, how your web server is configured to pass them and whether the trusted proxy list is set correctly.
Documentation for the release in use
Check that the behavior you rely on is documented for the exact Mautic release you run, not only for the latest docs. Mautic publishes docs by version, and behavior can change between minor releases. Ask your implementation partner or the vendor for the release notes covering this area, and retest after each upgrade rather than assuming the setting survives.
Mautic releasesQuestions teams ask before excluding bots and internal traffic
What does it cost to exclude bots and internal traffic from Mautic?
Cost depends mainly on how much analysis the exclusions need before they are safe to apply. The configuration itself is a small task. Most of the effort goes into reviewing current tracking data, building the list of excluded addresses, testing the rules against known visits and documenting what was excluded and why. Costs rise when the site has several domains, when a CDN, load balancer or reverse proxy hides real visitor addresses, when offices use VPNs or shared ranges, or when the tracking data is already polluted and needs review. Most of this work is one-time. Ongoing costs appear only if you add retesting or support. Ask any quote to list each deliverable, the domains and environments covered and whether a retest is included. DeployOpen does not publish a price list. A quote follows from the written scope.
How long does setting up Mautic exclusions usually take?
The timeline depends on the number of sites, the state of the current data and how long you need to observe traffic before and after a change. A single site with a clear list of internal addresses can be configured quickly. Verification usually takes longer than configuration, because the team needs to confirm that real prospects are still recorded and that automated traffic is no longer inflating activity. Setups with several domains, complex proxy paths or disputed office traffic need more review cycles. Ask for the planned phases in writing: discovery, configuration on a test environment, verification against live traffic, and handover. Each phase should name who approves it. A fixed-scope agreement sets these steps before work begins, so the timeline reflects the agreed scope rather than guesswork.
What do we need to provide before exclusions can be configured?
The work goes faster when the inputs are ready. Prepare the following before the first working session:
- The public IP addresses and ranges used by offices, VPNs and internal test tools, with an owner for each range
- Details of any CDN, reverse proxy or load balancer in front of the website, including which header carries the visitor address
- Administrator access to the Mautic tracking settings and the websites that load the tracking script
- A sample of recent tracking records or server access logs for comparison
- A named approver who can confirm which traffic is internal and which is a real prospect or customer
If any of these are missing, the team will need to find them before rules are changed. Access requests should go through your normal change control process, so the exclusion list has an audit trail.
Can an in-house Mautic administrator set up exclusions alone?
Yes, an experienced in-house administrator can make these changes if they have the right access and understand how visitor addresses reach the application. The main risk is not the change itself but the inputs. A wrong address range can hide genuine visitors from a customer's office, and an incomplete list can leave automated traffic in place. Teams often struggle when a proxy or CDN alters the address Mautic sees, because the list then excludes the wrong thing. Test changes on a staging copy or a low-risk site first, record each rule with its reason, and review results after a set period of live traffic. If nobody on the team has time to do the analysis or the site has several domains and proxies, a partner can take the discovery and verification work under a written scope while your team keeps ownership of the final list.
How can we tell if our Mautic exclusions are wrong?
Look for changes in the data that do not match what your business knows about visitors. Warning signs include a sudden drop in visits from a customer or prospect office, sales staff reporting that a contact visited pages that Mautic does not show, or every visitor appearing under one proxy or internal address. The opposite problem also matters. If traffic from a known crawler or automated source still appears in activity reports after you added it to the bot list, the rule may not match the way the request is identified. Compare excluded records with server access logs for a sample period, check that known prospect visits are still recorded, and keep a short log of each rule with its owner and reason. Review the exclusions after site changes, because a new CDN, domain or office network can make an existing rule wrong without any warning.
Do Mautic upgrades affect bot and internal IP exclusions?
Upgrades do not usually remove your own rules, but they can change the environment around them, so each upgrade should include a check of tracking behavior. Mautic publishes monthly patch releases, minor releases every three months and major releases every two years, so a team on an older line may face a larger jump later. Mautic 7.2 receives active and security support until 30 September 2026, and Mautic 7.3 is planned as the long-term support release with security support through 31 December 2027. Read the release notes for each version you move to, confirm whether tracking code or configuration handling changes, and rerun the verification checks on a staging copy before production. Also review the list after any change to your hosting, proxy or office network, since those changes affect the addresses the rules depend on.
How DeployOpen scopes and verifies Mautic tracking exclusions
DeployOpen approaches bot and internal traffic exclusion as a scoped piece of Mautic tracking work, starting from your traffic sources and reporting needs. We build the exclusion rules inside your own infrastructure, verify them against real hits, and leave your team with documentation to maintain them.
How we scope
- We review which traffic sources reach your Mautic tracking script and how they affect your reports today.
- We agree in writing which bot lists, IP ranges and 404 handling rules are in and out of scope.
- Engagements are fixed-scope, with deliverables and timelines confirmed before any configuration starts.
- We confirm which teams own reporting decisions so exclusion rules match how your data is used.
How we build
- We configure the known bots list and excluded IP addresses in your own Mautic instance.
- We document the reasoning for each excluded address, including why office IPs are handled with care.
- We test exclusion rules with controlled visits from known bot agents and internal addresses.
- We check that 404 hits from anonymous visitors are handled as your scope defines.
How we hand over
- You receive a written record of every exclusion rule, its purpose and its owner.
- We provide a verification checklist your team can rerun after website or server changes.
- We walk your administrators through where the settings live and how to review them.
- Documentation stays in your environment so your team keeps control of tracking data.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers.
- We can retest exclusion rules after Mautic upgrades, new campaigns or changes to your site.
- We can review tracking reports periodically to spot bot traffic that returns after a change.
- Retainer scope, including review frequency, is agreed in writing before work begins.

