A browser inspection wrote visits into sales funnels because its blocklist missed endpoint names
The inspection rendered correctly and wrote visits into the funnels
On September 27, 2026, a recurring inspection gained a step that rendered pages in a real browser before checking them. The inspection opened 28–31 pages each day. Because those page loads could affect site measurements, it included a blocklist intended to stop telemetry and funnel requests.
The browser rendered the pages, and the inspection returned OK. Nevertheless, the inspection wrote 11 visits into one sales funnel and three into another. The unwanted requests did not produce an exception or a visible failure in the inspection. They appeared as visits in the receiving systems.
That distinction matters to the incident: the check succeeded at rendering and inspecting pages while failing to keep its own activity out of their measurements. An OK result described the page inspection. It did not establish that the browser had remained read-only.
The contamination was discovered by looking at the receiving side’s figures. The inspection itself emitted no signal that its blocking rules had missed requests. Its intended protection and its actual behavior had diverged without interrupting the work it was designed to perform.
The original blocking rule was based on recognizable URL fragments:
const BLOCK = [/\/telemetry\b/, /\/funnel\b/, /\/collect\b/, /google-analytics\.com/, ...];
These patterns expressed a list of endpoint names the inspection expected to encounter. They did not express the inspection’s more fundamental constraint: it had no reason to send writes.
Familiar words looked like a sufficient boundary
The blocklist included words that matched the purpose of the requests being excluded: telemetry, funnel, and collect. But a request’s purpose did not determine whether the regular expression matched its URL. The exact characters did.
The telemetry endpoint was named storeTelemetry. The pattern /\/telemetry\b/ required the sequence /telemetry, which that endpoint did not contain. Recognizing “telemetry” within the endpoint name was something a reader could do; it was not what the written expression did.
The funnel endpoint was /api/trackFunnel. The pattern /\/funnel\b/ did not match that either. The endpoint contained kFunnel rather than /funnel, and the pattern did not account for the capital letter.
The Google Analytics request, by contrast, was blocked. Its URL contained google-analytics.com/g/collect, and the domain pattern matched it. The blocklist therefore had a visible success alongside its misses. Blocking that request did not demonstrate that other measurement requests were also blocked.
There was a receiving-side safeguard as well. It inspected the user agent for indications such as headless browsing. However, the rendering browser presented itself as ordinary Chrome, so that check let the requests through.
Both defenses depended on identifying characteristics that were absent from the actual requests. The URL rules expected particular names. The user-agent check expected a particular indication of automation. Neither prevented these synthetic visits from entering the funnels.
The failure did not require a different kind of measurement request. Endpoint names with prefixed words were enough to fall outside the written patterns.
The same mistake also narrowed what the inspection could see
The endpoint failure was one instance of a broader problem recorded that day: treating a manually written list of names as if it represented the underlying set completely.
The inspection also maintained a list of page paths to check. That list omitted /, even though the root page displayed prices. As a result, the inspection missed a double-price issue on a surface it had never included.
A separate verification reported that “$50” had disappeared after checking only two surfaces. It had not first established the set of surfaces that displayed prices. The report’s scope was therefore narrower than its conclusion.
These were different failures with the same structural weakness. The blocklist stood in for all requests that could affect measurements. The path list stood in for all relevant pages. The price-removal check stood in for all places where the price could appear.
In each case, the written names defined what the check considered. Something outside that list could remain outside the check without causing the check itself to fail.
This also explains why normal rendering was weak evidence for the blocklist. Rendering could complete whether a measurement request was blocked or allowed. The absence of an exception did not distinguish those outcomes.
The useful question was no longer whether the list contained plausible names. It was whether the rule represented the property the inspection actually needed, and whether the inspected set came from the surfaces actually being served.
Request methods became the primary rule
The repair started with the inspection’s purpose: it was there to read, with no task requiring a write. Instead of making endpoint names the primary decision, the request handler allowed only the methods selected for that read-only operation.
const READ_ONLY = new Set(['GET', 'HEAD']);
if (!READ_ONLY.has(req.method())) return route.abort();
This changed how the decision was made. A request no longer needed a recognized telemetry or funnel name to be rejected. A method outside the allowed set was sufficient.
The name-based rules remained as an additional safeguard, with capitalization also accounted for. Their role changed: they supplemented the method boundary instead of carrying the whole responsibility for identifying unwanted requests.
The inspection also attached a dedicated marker header to every request. That gave receiving systems an explicit way to distinguish synthetic activity without depending on URL shapes or the browser’s user-agent string. It also avoided requiring a separate identification rule for each endpoint.
The browser’s navigator.webdriver property was left intact. MDN’s documentation for Navigator.webdriver describes it as returning true precisely when the user agent is controlled by WebDriver automation, which is why the repair did not erase that signal; receiving systems could use it as another indication when separating synthetic activity.
Verification checked actual request behavior rather than stopping at a review of the new code. POST storeTelemetry was blocked, and POST /api/trackFunnel was blocked. GET storeCatalog was allowed, and prices remained rendered on the page. navigator.webdriver remained true.
Those observations established the relevant result for the recorded inspection: the previously missed POST requests were stopped while the catalog request needed for the price display still passed.
They also kept the verification tied to both sides of the requirement. Preventing the unwanted requests mattered, but so did retaining the content the inspection needed to examine.
Check the traffic and the served surfaces in your own environment
Start by stating what your browser inspection needs to do. In this incident, the useful constraint was that the scan had no work requiring writes. That made the request method a more direct basis for its primary rule than a growing collection of endpoint names.
Then record the URLs the browser actually requests and compare them with the blocking behavior. The original rules looked relevant when read in isolation. Their mismatch became concrete when placed beside storeTelemetry and /api/trackFunnel.
Where a name-based rule remains necessary, add negative tests that expose changes in names. A prefixed word or a capitalization difference should be something the verification exercises, because those differences were enough to bypass the rules here. Successful page rendering cannot substitute for checking what traffic was allowed.
Apply the same scrutiny to coverage. Compare the inspection’s page list with the serving configuration. If the task concerns prices, establish which served surfaces display prices before concluding that a price has disappeared. The omitted / page shows why checking every item in a handwritten list does not establish that every relevant page was checked.
Also account for the effects of opening a page. In this inspection, “reading” included running page scripts, and those scripts sent measurement requests. The browser’s activity needed an explicit boundary and a recognizable synthetic marker.
Finally, do not repair contaminated figures by subtracting an assumed number of visits. The record could not reliably separate synthetic entries from human ones. Subtraction would imply that the remainder was trustworthy without establishing that distinction. The recorded lesson was to disclose that the affected day’s figures should not be trusted.
Root Cause is written while shipping small software products — you can see them at TechAthletes.