Allow extra hostnames, block IPs and pages, and collapse dynamic paths at ingest.
When you finish, office traffic, staging pages, and one-per-order URLs stop distorting
your reports and your bill.
Before you start
You must have the owner or admin role.
Filters run at ingest. A blocked event is never stored and never billed.
Filters are not retroactive. They never change an event DATALYR already stored.
A saved change reaches the ingest worker within 5 minutes.
The four lists
Settings → Filters holds four cards. Each takes a value and an add button.
Card
Effect on a matching event
Maximum entries
Additional websites
Adds a hostname to the allow-list
50
Blocked IPs
Drops the whole request
100
Blocked pages
Drops the event
100
Masked pages
Rewrites the URL, then keeps the event
50
* is the only wildcard. It matches one segment. ** does nothing.
Additional websites
Your primary domain and its apex and www pair are always accepted. Add every other
hostname that runs this workspace’s SDK.
app.acme.com*.acme.com
An invalid entry returns Use a format like example.com or *.example.com.
Blocked IPs
Add an IPv4 address or an IPv4 CIDR range. Add your own office range first.
203.0.113.4210.0.0.0/24
We return HTTP 204 to a blocked IP and store nothing. The browser sees a normal response,
so a blocked visitor can’t tell.IPv6 is not accepted. An invalid range returns an Invalid CIDR error, and the mask must
be 0–32.
Blocked pages
Add a path pattern. DATALYR removes a matching event from the batch.
/admin/staging/*
A path without a leading slash returns Path must start with /.
Masked pages
Add a pattern with :name placeholders. DATALYR rewrites the URL, the page URL, and the
pathname of a matching event.
/orders/:id/users/:userId/profile
/orders/abc and /orders/xyz then aggregate as /orders/:id. You keep the pageview and
lose the one-per-order clutter.
A broad pattern removes real customer activity permanently. /* blocks your entire
site. Add one narrow rule, test it, then add the next.
Verify
Save the rule.
Wait 5 minutes for the ingest cache to expire.
Open Live.
Load a page that the rule targets.
Confirm nothing arrives.
Load a page the rule does not target.
Confirm it arrives.
When it does not work
Symptom
Cause
Fix
The blocked page still appears
The ingest cache still holds the old list, for up to 5 minutes.
Wait, then re-test.
An IPv6 visitor is still counted
DATALYR matches IPv4 only.
Block the page or the hostname instead.
Too many entries (max 100)
The list is full.
Replace several entries with one CIDR range or one wildcard.
Old rows still show the unmasked path
Masking is not retroactive.
Compare a date range that starts after you saved the mask.
Legitimate traffic disappeared
A wildcard is too broad.
Remove the entry. The events during the gap are gone.
Next
Usage: confirm the filter lowered your metered volume.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DATALYR Docs","description":"Simple guides for setting up and using DATALYR.","colors":{"primary":"#FC6600","light":"#FC6600","dark":"#FC6600"},"logo":{"light":"https://mintcdn.com/datalyr/ROJj0wlntTvU8OM_/light.svg?fit=max\u0026auto=format\u0026n=ROJj0wlntTvU8OM_\u0026q=85\u0026s=29f98b487b8f65c3bd267065db18b4b9","dark":"https://mintcdn.com/datalyr/xt7Bk8U79eZ1GtVp/dark.svg?fit=max\u0026auto=format\u0026n=xt7Bk8U79eZ1GtVp\u0026q=85\u0026s=43fe8f8da4b4e1658fe86bbeef08ff59"},"favicon":"https://mintcdn.com/datalyr/ROJj0wlntTvU8OM_/fav.png?fit=max\u0026auto=format\u0026n=ROJj0wlntTvU8OM_\u0026q=85\u0026s=f5026bdd46f056f274b9f4b111ee8f5b","appearance":{"default":"dark","strict":false},"navbar":{"links":[{"href":"https://datalyr.com","label":"Open DATALYR"}],"primary":{"type":"button","label":"Get started","href":"https://datalyr.com/signup"}},"fonts":{"family":"Inter"},"styling":{"eyebrows":"section","latex":false},"contextual":{"options":["copy","chatgpt","claude","add-mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"datalyr","hasAudioNarration":false,"actualSubdomain":"datalyr","customDomains":["docs.datalyr.com"],"gitSource":{"type":"github","owner":"datalyr","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6b0378760d7e8ddc2639c008","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"API \u0026 MCP","count":92},{"language":"default","tag":"Getting Started","count":77},{"language":"default","tag":"Agent ads","count":15},{"language":"default","tag":"Advanced","count":14},{"language":"default","tag":"Dashboards, analyses and share links","count":14},{"language":"default","tag":"Using DATALYR","count":13},{"language":"default","tag":"Integrations","count":12},{"language":"default","tag":"Revenue","count":11},{"language":"default","tag":"SDK Reference","count":10},{"language":"default","tag":"Account \u0026 billing","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":":root{--datalyr-bg: #ffffff;--datalyr-surface: #fafafa;--datalyr-surface-hover: #f5f5f5;--datalyr-border: #e7e7e7;--datalyr-text: #171717;--datalyr-muted: #666666;--datalyr-orange: #fc6600}.dark,[data-theme=\"dark\"]{--datalyr-bg: #141414;--datalyr-surface: #181818;--datalyr-surface-hover: #1d1d1d;--datalyr-border: #303030;--datalyr-text: #ededed;--datalyr-muted: #a8a8a8}html,body{background:var(--datalyr-bg)!important}body{color:var(--datalyr-text);font-feature-settings:\"cv02\", \"cv03\", \"cv04\", \"cv11\";letter-spacing:-0.006em}#navbar,#navbar-transition{background:color-mix(in srgb, var(--datalyr-bg) 94%, transparent)!important;border-color:var(--datalyr-border)!important;backdrop-filter:blur(16px)}#navbar a,#navbar button{letter-spacing:-0.01em}html body nav#sidebar{background:transparent!important;border-color:var(--datalyr-border)!important}#sidebar-content>div>div.sticky.top-0{background:transparent!important}#sidebar a,#sidebar button{border-radius:6px!important;font-size:14px;font-weight:400!important}#sidebar a:hover,#sidebar button:hover{background:var(--datalyr-surface-hover)!important}#sidebar a[aria-current=\"page\"]{background:transparent!important;box-shadow:none;border-radius:6px!important;color:var(--datalyr-orange)!important;font-weight:500!important}#sidebar a[aria-current=\"page\"]:hover{background:var(--datalyr-surface-hover)!important}#sidebar .sidebar-group{border-left:1px solid var(--datalyr-border);margin-left:4px;padding-left:8px}main{color:var(--datalyr-text)}main h1,main h2,main h3,main h4{color:var(--datalyr-text)!important;letter-spacing:-0.035em;font-weight:650}main h1{font-size:clamp(1.875rem, 3vw, 2rem)!important;line-height:1.16!important}main h2{font-size:1.5rem!important;line-height:1.25!important}main h3{font-size:1.125rem!important;line-height:1.35!important}main p,main li,main td{color:var(--datalyr-muted)!important;font-size:15.5px;line-height:1.72}main strong{color:var(--datalyr-text);font-weight:600}main a{text-underline-offset:3px}main a[class*=\"card\"],main [class*=\"Card\"]{background:var(--datalyr-surface)!important;border-color:var(--datalyr-border)!important;border-radius:10px!important;box-shadow:none!important;transition:background-color 140ms ease, border-color 140ms ease,\n transform 140ms ease}main a[class*=\"card\"]:hover{background:var(--datalyr-surface-hover)!important;border-color:#3a3a3a!important;transform:translateY(-1px)}main a[class*=\"card\"] h2,main [class*=\"Card\"] h2{font-size:1rem!important;line-height:1.35!important;letter-spacing:-0.015em}main [data-component-part=\"card-icon\"] svg{background:var(--datalyr-muted)!important;color:var(--datalyr-muted)!important}pre,code{border-radius:8px!important}aside[aria-label=\"Table of Contents\"],.toc,[class*=\"TableOfContents\"],nav[aria-labelledby=\"toc-heading\"]{position:sticky!important;top:88px!important;max-height:calc(100vh - 110px)!important;overflow-y:auto!important}@media (max-width: 768px){main h1{font-size:1.875rem!important}}"}]}
{"page":{"pagePath":"advanced/filters","slug":"/advanced/filters","pageMetadata":{"title":"Filters","description":"Allow extra hostnames, block IPs and pages, and collapse dynamic paths at ingest.","href":"/advanced/filters"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Allow extra hostnames, block IPs and pages, and collapse dynamic paths at ingest.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`When you finish, office traffic, staging pages, and one-per-order URLs stop distorting\nyour reports and your bill.`}),`\n`,_jsx(Heading,{level:`2`,id:`before-you-start`,children:`Before you start`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`You must have the `,_jsx(_components.code,{children:`owner`}),` or `,_jsx(_components.code,{children:`admin`}),` role.`]}),`\n`,_jsx(_components.li,{children:`Filters run at ingest. A blocked event is never stored and never billed.`}),`\n`,_jsx(_components.li,{children:`Filters are not retroactive. They never change an event DATALYR already stored.`}),`\n`,_jsx(_components.li,{children:`A saved change reaches the ingest worker within 5 minutes.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-four-lists`,children:`The four lists`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Settings → Filters`}),` holds four cards. Each takes a value and an `,_jsx(_components.strong,{children:`add`}),` button.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Card`}),_jsx(_components.th,{children:`Effect on a matching event`}),_jsx(_components.th,{children:`Maximum entries`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Additional websites`})}),_jsx(_components.td,{children:`Adds a hostname to the allow-list`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`50`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Blocked IPs`})}),_jsx(_components.td,{children:`Drops the whole request`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`100`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Blocked pages`})}),_jsx(_components.td,{children:`Drops the event`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`100`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Masked pages`})}),_jsx(_components.td,{children:`Rewrites the URL, then keeps the event`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`50`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`*`}),` is the only wildcard. It matches one segment. `,_jsx(_components.code,{children:`**`}),` does nothing.`]}),`\n`,_jsx(Heading,{level:`2`,id:`additional-websites`,children:`Additional websites`}),`\n`,_jsxs(_components.p,{children:[`Your primary domain and its apex and `,_jsx(_components.code,{children:`www`}),` pair are always accepted. Add every other\nhostname that runs this workspace’s SDK.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`app.acme.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`*.acme.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`An invalid entry returns `,_jsx(_components.code,{children:`Use a format like example.com or *.example.com`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`blocked-ips`,children:`Blocked IPs`}),`\n`,_jsx(_components.p,{children:`Add an IPv4 address or an IPv4 CIDR range. Add your own office range first.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`203.0.113.42`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`10.0.0.0/24`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`We return HTTP `,_jsx(_components.code,{children:`204`}),` to a blocked IP and store nothing. The browser sees a normal response,\nso a blocked visitor can’t tell.`]}),`\n`,_jsxs(_components.p,{children:[`IPv6 is not accepted. An invalid range returns an `,_jsx(_components.code,{children:`Invalid CIDR`}),` error, and the mask must\nbe 0–32.`]}),`\n`,_jsx(Heading,{level:`2`,id:`blocked-pages`,children:`Blocked pages`}),`\n`,_jsx(_components.p,{children:`Add a path pattern. DATALYR removes a matching event from the batch.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/admin`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/staging/*`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`A path without a leading slash returns `,_jsx(_components.code,{children:`Path must start with /`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`masked-pages`,children:`Masked pages`}),`\n`,_jsxs(_components.p,{children:[`Add a pattern with `,_jsx(_components.code,{children:`:name`}),` placeholders. DATALYR rewrites the URL, the page URL, and the\npathname of a matching event.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/orders/:id`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/users/:userId/profile`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`/orders/abc`}),` and `,_jsx(_components.code,{children:`/orders/xyz`}),` then aggregate as `,_jsx(_components.code,{children:`/orders/:id`}),`. You keep the pageview and\nlose the one-per-order clutter.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`A broad pattern removes real customer activity permanently. `,_jsx(_components.code,{children:`/*`}),` blocks your entire\nsite. Add one narrow rule, test it, then add the next.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`verify`,children:`Verify`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Save the rule.`}),`\n`,_jsx(_components.li,{children:`Wait 5 minutes for the ingest cache to expire.`}),`\n`,_jsxs(_components.li,{children:[`Open `,_jsx(_components.strong,{children:`Live`}),`.`]}),`\n`,_jsx(_components.li,{children:`Load a page that the rule targets.`}),`\n`,_jsx(_components.li,{children:`Confirm nothing arrives.`}),`\n`,_jsx(_components.li,{children:`Load a page the rule does not target.`}),`\n`,_jsx(_components.li,{children:`Confirm it arrives.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-it-does-not-work`,children:`When it does not work`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Symptom`}),_jsx(_components.th,{children:`Cause`}),_jsx(_components.th,{children:`Fix`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The blocked page still appears`}),_jsx(_components.td,{children:`The ingest cache still holds the old list, for up to 5 minutes.`}),_jsx(_components.td,{children:`Wait, then re-test.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`An IPv6 visitor is still counted`}),_jsx(_components.td,{children:`DATALYR matches IPv4 only.`}),_jsx(_components.td,{children:`Block the page or the hostname instead.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Too many entries (max 100)`})}),_jsx(_components.td,{children:`The list is full.`}),_jsx(_components.td,{children:`Replace several entries with one CIDR range or one wildcard.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Old rows still show the unmasked path`}),_jsx(_components.td,{children:`Masking is not retroactive.`}),_jsx(_components.td,{children:`Compare a date range that starts after you saved the mask.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Legitimate traffic disappeared`}),_jsx(_components.td,{children:`A wildcard is too broad.`}),_jsx(_components.td,{children:`Remove the entry. The events during the gap are gone.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`next`,children:`Next`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/account/usage`,children:`Usage`}),`: confirm the filter lowered your metered volume.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/account/workspace-settings`,children:`Workspace settings`}),`: set the primary domain correctly.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/advanced/privacy`,children:`Privacy and redaction`}),`: control what leaves DATALYR, not what enters.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Filters","description":"Allow extra hostnames, block IPs and pages, and collapse dynamic paths at ingest.","href":"/advanced/filters"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Before you start","slug":"before-you-start","depth":2,"children":[]},{"title":"The four lists","slug":"the-four-lists","depth":2,"children":[]},{"title":"Additional websites","slug":"additional-websites","depth":2,"children":[]},{"title":"Blocked IPs","slug":"blocked-ips","depth":2,"children":[]},{"title":"Blocked pages","slug":"blocked-pages","depth":2,"children":[]},{"title":"Masked pages","slug":"masked-pages","depth":2,"children":[]},{"title":"Verify","slug":"verify","depth":2,"children":[]},{"title":"When it does not work","slug":"when-it-does-not-work","depth":2,"children":[]},{"title":"Next","slug":"next","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"datalyr","siteName":"DATALYR Docs","title":"Filters - DATALYR Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T16:07:53.133Z","originalFileLocation":"advanced/filters.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Allow extra hostnames, block IPs and pages, and collapse dynamic paths at ingest.\">\u003cmeta data-mint-head name=\"application-name\" content=\"DATALYR Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/datalyr/OtXrSaasPyqjg3q6/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/datalyr/OtXrSaasPyqjg3q6/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/datalyr/OtXrSaasPyqjg3q6/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/datalyr/OtXrSaasPyqjg3q6/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/datalyr/OtXrSaasPyqjg3q6/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/datalyr/OtXrSaasPyqjg3q6/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/datalyr/OtXrSaasPyqjg3q6/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/datalyr/OtXrSaasPyqjg3q6/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/datalyr/OtXrSaasPyqjg3q6/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Filters - DATALYR Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Allow extra hostnames, block IPs and pages, and collapse dynamic paths at ingest.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DATALYR Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.datalyr.com/advanced/filters\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://datalyr.mintlify.site/_mintlify/api/og/v2?division=Advanced\u0026amp;title=Filters\u0026amp;description=Allow+extra+hostnames%2C+block+IPs+and+pages%2C+and+collapse+dynamic+paths+at+ingest.\u0026amp;theme=cfd8a5cf5a95aa7efc3c16b4\u0026amp;signature=100e6a59632f2a7bf0343b76fbe251ec2f423c38d262169ec7839a5d31cf9a11\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Filters - DATALYR Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Allow extra hostnames, block IPs and pages, and collapse dynamic paths at ingest.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://datalyr.mintlify.site/_mintlify/api/og/v2?division=Advanced\u0026amp;title=Filters\u0026amp;description=Allow+extra+hostnames%2C+block+IPs+and+pages%2C+and+collapse+dynamic+paths+at+ingest.\u0026amp;theme=cfd8a5cf5a95aa7efc3c16b4\u0026amp;signature=100e6a59632f2a7bf0343b76fbe251ec2f423c38d262169ec7839a5d31cf9a11\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/datalyr/OtXrSaasPyqjg3q6/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DATALYR Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FC6600\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.datalyr.com/advanced/filters\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/advanced/filters.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.datalyr.com/#organization\",\"name\":\"DATALYR Docs\",\"url\":\"https://docs.datalyr.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/datalyr/ROJj0wlntTvU8OM_/light.svg?fit=max\u0026auto=format\u0026n=ROJj0wlntTvU8OM_\u0026q=85\u0026s=29f98b487b8f65c3bd267065db18b4b9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.datalyr.com#website\",\"name\":\"DATALYR Docs\",\"url\":\"https://docs.datalyr.com\",\"publisher\":{\"@id\":\"https://docs.datalyr.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.datalyr.com/advanced/filters#webpage\",\"url\":\"https://docs.datalyr.com/advanced/filters\",\"name\":\"Filters\",\"description\":\"Allow extra hostnames, block IPs and pages, and collapse dynamic paths at ingest.\",\"dateModified\":\"2026-11-13T16:07:53.133Z\",\"isPartOf\":{\"@id\":\"https://docs.datalyr.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.datalyr.com/advanced/filters#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.datalyr.com/advanced/filters#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Advanced\",\"item\":\"https://docs.datalyr.com/advanced\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Filters\",\"item\":\"https://docs.datalyr.com/advanced/filters\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.datalyr.com/advanced/filters#article\",\"headline\":\"Filters\",\"name\":\"Filters\",\"description\":\"Allow extra hostnames, block IPs and pages, and collapse dynamic paths at ingest.\",\"url\":\"https://docs.datalyr.com/advanced/filters\",\"mainEntityOfPage\":{\"@id\":\"https://docs.datalyr.com/advanced/filters#webpage\"},\"dateModified\":\"2026-11-13T16:07:53.133Z\",\"publisher\":{\"@id\":\"https://docs.datalyr.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.datalyr.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DATALYR Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"DATALYR Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/advanced/filters.md","siteName":"DATALYR Docs","nav":{"global":null,"tabs":[{"tab":"Getting Started","groups":[{"group":"Get started","pages":[{"title":"What is DATALYR?","href":""},{"title":"Choose your setup","href":"/getting-started/choose-your-setup"}]},{"group":"Installation","pages":[{"title":"Installation","href":"/installation/index"},{"title":"Install web tracking","href":"/getting-started/install-web-tracking"},{"title":"Install on Shopify","href":"/installation/shopify"},{"title":"Install in a mobile app","href":"/installation/mobile"},{"title":"Verify your setup","href":"/getting-started/verify-your-setup"}]},{"group":"Revenue","pages":[{"title":"Revenue sources","href":"/revenue/index"},{"title":"Shopify","href":"/revenue/shopify"},{"title":"Stripe","href":"/revenue/stripe"},{"title":"Whop","href":"/revenue/whop"},{"title":"Checkout Champ","href":"/revenue/checkoutchamp"},{"title":"RevenueCat","href":"/revenue/revenuecat"},{"title":"Superwall","href":"/revenue/superwall"},{"title":"Ecommerce revenue","href":"/revenue/ecommerce"},{"title":"Subscription revenue","href":"/revenue/subscriptions"},{"title":"Refunds","href":"/revenue/refunds"},{"title":"Profit","href":"/revenue/profit"}]},{"group":"Leads","pages":[{"title":"iClosed","href":"/integrations/iclosed"},{"title":"Calendly","href":"/integrations/calendly"},{"title":"Commas","href":"/integrations/commas"},{"title":"HubSpot","href":"/integrations/hubspot"},{"title":"Zapier","href":"/integrations/zapier"}]},{"group":"Using DATALYR","pages":[{"title":"Using DATALYR","href":"/product/index"},{"title":"Overview","href":"/product/dashboard"},{"title":"Events","href":"/product/events"},{"title":"Live","href":"/product/live"},{"title":"Users","href":"/product/users"},{"title":"Conversions","href":"/product/conversions"},{"title":"Health","href":"/product/health"},{"title":"Reports","href":"/product/reports"},{"title":"Custom metrics","href":"/product/custom-metrics"},{"title":"Dashboards and analyses","href":"/product/dashboards"},{"title":"Tracking links","href":"/product/tracking-links"},{"title":"AI chat","href":"/product/ai-chat"},{"title":"Session replay","href":"/product/session-replay"}]},{"group":"Advanced","pages":[{"title":"Advanced","href":"/advanced/index"},{"title":"Custom events","href":"/advanced/custom-events"},{"title":"Identity","href":"/advanced/identity"},{"title":"Attribution","href":"/attribution/index"},{"title":"Conversion delivery","href":"/advanced/conversion-delivery"},{"title":"First-party tracking","href":"/advanced/first-party-tracking"},{"title":"Cross-domain tracking","href":"/advanced/cross-domain-tracking"},{"title":"Pixels and scripts","description":"Load a Meta, Google, or TikTok tag, an external script, or inline JavaScript through dl.js.","href":"/advanced/pixels-and-scripts"},{"title":"Filters","href":"/advanced/filters"},{"title":"Health and wellness filtering","description":"Turn on filtering once. Existing and new conversion rules follow it automatically.","href":"/advanced/health-wellness-redaction"},{"title":"App campaigns","href":"/advanced/app-campaigns"},{"title":"Privacy and redaction","href":"/advanced/privacy"},{"title":"Apple ATT and install matching","href":"/advanced/apple-att"},{"title":"Session replay privacy and masking","href":"/advanced/session-replay-privacy"}]},{"group":"Integrations","pages":[{"title":"Integrations","href":"/integrations/index"},{"title":"Meta Ads","href":"/integrations/meta-ads"},{"title":"Google Ads","href":"/integrations/google-ads"},{"title":"TikTok Ads","href":"/integrations/tiktok-ads"},{"title":"Snapchat Ads","href":"/integrations/snapchat-ads"},{"title":"OpenAI Ads","href":"/integrations/openai-ads"},{"title":"Whop Ads","href":"/integrations/whop-ads"},{"title":"LinkedIn Ads","href":"/integrations/linkedin"},{"title":"X Ads","href":"/integrations/x"},{"title":"AppLovin Ads","href":"/integrations/applovin"},{"title":"Klaviyo","href":"/integrations/klaviyo"},{"title":"Apple SKAdNetwork","href":"/integrations/apple-skadnetwork"}]},{"group":"Account \u0026 billing","pages":[{"title":"Account and billing","href":"/account/index"},{"title":"Workspace settings","href":"/account/workspace-settings"},{"title":"Domains","href":"/account/domains"},{"title":"Team members","href":"/account/team-members"},{"title":"Plans and billing","href":"/account/billing"},{"title":"Usage","href":"/account/usage"},{"title":"API keys","href":"/account/api-keys"},{"title":"Delete a workspace or account","href":"/account/delete-account"}]},{"group":"Troubleshooting","pages":[{"title":"Troubleshooting","href":"/troubleshooting/index"},{"title":"No events","href":"/troubleshooting/no-events"},{"title":"Missing revenue","href":"/troubleshooting/missing-revenue"},{"title":"Missing attribution","href":"/troubleshooting/missing-attribution"},{"title":"Integration errors","href":"/troubleshooting/integration-errors"},{"title":"Different numbers","href":"/troubleshooting/data-differences"},{"title":"Conversion not delivered","href":"/troubleshooting/conversion-delivery"}]}]},{"tab":"Use cases","pages":[{"title":"Use cases","href":"/use-cases/shopify"}]},{"tab":"API \u0026 MCP","pages":[{"title":"API \u0026 MCP","href":"/api-reference/agents"}]},{"tab":"SDK Reference","pages":[{"title":"SDK Reference","href":"/sdk-reference"}]}]},"basePath":"","title":"Filters - DATALYR Docs","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":[],"chunks":[]}