Domain exclusion feature allows us to exclude specific domains or subdomains from being recorded. We can use patterns with wildcards (*) to do this. Let's look at some examples to see how it works.
Example 1
Pattern: example.com
Description: This pattern excludes only the exact domain specified. Any subdomains or variations of the domain will not be excluded. For example, it will match example.com
but will not match app.com
, app.example.com
, or account.app.example.com
.
Example 2
Pattern: *.example.com
Description: This pattern excludes immediate subdomains of the specified domain but does not exclude the naked domain or any further levels of subdomains. For example, it will match app.example.com
and spinkart.example.com
, but will not match example.com
or account.app.example.com
.
Example 3
Pattern: *.*.example.com
Description: This pattern excludes second-level subdomains of the specified domain. It does not exclude the naked domain, immediate subdomains, or subdomains beyond the second level. For example, it will match account.app.example.com
and account.spinkart.example.com
, but will not match example.com
or app.example.com
.
Example 4
Pattern: *.net
Description: This pattern excludes any domain within the specified top-level domain. For example, it will match spinkart.net
and example.net
, but will not match example.com
or app.example.net
.
Example 5
Pattern: example.*
Description: This pattern excludes the specified domain across any top-level domain. For example, it will match example.com
and example.net
, but will not match app.example.com
or app.example.net
.