> For the complete documentation index, see [llms.txt](https://docs.nexthink.com/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/configuring-collector-level-anonymization/configuring-collector-level-anonymization-classic.md).

# Configuring Collector-level anonymization (classic)

{% hint style="info" %}
This page applies to **Collector versions earlier than 26.5**. To understand how anonymization works for Collector version 26.5 and later, refer to the [Configuring Collector-level anonymization](/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/configuring-collector-level-anonymization.md) page.
{% endhint %}

Nexthink offers various ways to anonymize data along with granular controls for user privacy. The approaches described in this documentation complement similar features offered by the data storage layer, ensuring that data leaving the Microsoft Windows or macOS devices is anonymized.

## Anonymization options

The following table lists each Collector-level anonymization option and the available settings for them.

{% hint style="info" %}
If you disable **User name** and **User interaction time** reporting in device configuration profiles, you don't need to enable the server-side equivalents.
{% endhint %}

<table data-search="false"><thead><tr><th>Data</th><th width="265.666748046875">Description</th><th width="334.666748046875">Privacy options</th><th width="269.333251953125">Default privacy option</th></tr></thead><tbody><tr><td><strong>User name</strong></td><td>User logon name reported from the device.</td><td><ul><li><code>cleartext</code>: Collector reports the username in cleartext.</li><li><code>hashed</code>: Collector hashes the username before sending it to the backend.</li><li><code>no_import</code>: Collector does not collect the username at all.</li></ul><p><strong>Note:</strong> The integration with Microsoft Active Directory using the <a href="https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/api-and-integrations-classic/data-enricher-classic">Data Enricher (classic)</a> or Microsoft Entra ID using the <a href="https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/inbound-connectors/connector-for-microsoft-entra-id-azure-ad">Connector for Microsoft Entra ID</a> are independent from this Collector configuration. Ensure that the list of AD fields retrieved by the Data Enricher (classic) and Connector for Microsoft Entra ID is properly configured.</p></td><td><code>cleartext</code></td></tr><tr><td><strong>User Principal Name (UPN)</strong></td><td>Standardized user identifier that usually takes the form of an email address. The UPN allows the system to identify a user across systems uniquely. Nexthink also uses the UPN to enrich user objects with data from third-party services.</td><td><ul><li><code>cleartext</code>: Collector reports the UPN in cleartext.</li><li><code>hashed</code>: Collector hashes the UPN before sending it to the backend.</li><li><code>no_import</code>: Collector does not collect the UPN at all.</li></ul></td><td><code>no_import</code></td></tr><tr><td><strong>Focus time</strong></td><td>Reports the application focus duration while the application’s windows were in focus.</td><td><ul><li><code>enable</code>: Execution events <em>contain</em> information about how long the application was in focus.</li><li><code>disable</code>: Execution events <em>do not contain</em> information about how long the application was in focus.</li></ul></td><td><code>disable</code></td></tr><tr><td><strong>User activity</strong></td><td>Controls the reporting of the time the user was interacting with the mouse, touchpad or keyboard.</td><td><ul><li><code>enable</code>: Collector reports time periods when the user is actively using a device.</li><li><code>disable</code>: Collector does not report time periods when the user is actively using a device.</li></ul></td><td><code>enable</code></td></tr><tr><td><strong>Wi-Fi network</strong></td><td>Manages the reporting of the identification details for both the SSID and the BSSID with Wi-Fi performance metrics.</td><td><ul><li><code>enable</code>: Collector reports only performance metrics and connection attributes.</li><li><code>disable</code>: Collector reports the SSID and BSSID of the connected hotspots in addition to the performance metrics and connection attributes.<br><br><strong>Note:</strong> On Windows 11 version 24H2 and later, enable the <strong>Location services</strong> setting to allow reporting Wi-Fi data.</li></ul></td><td><code>enable</code></td></tr><tr><td><strong>Network connections</strong></td><td>Manages the reporting of network connection data.</td><td><ul><li><code>enable</code>: Collector reports network connections for all binaries including destination attributes and connection metrics.</li><li><code>disable</code>: Collector reports no network connection data.</li></ul></td><td><code>enable</code></td></tr><tr><td><strong>Data privacy filter for network connections</strong></td><td>Reports network connections according to user-defined <code>ALLOW</code> / <code>BLOCK</code> rules.</td><td>Refer to the <a data-mention href="#data-privacy-filter">#data-privacy-filter</a> section for more information.</td><td>Collector reports all network connections</td></tr><tr><td><strong>Domain name</strong></td><td>Manages the reporting of the destination’s domain name for network connections.</td><td><ul><li><code>enable</code>: Collector reports the domain name of the destination.</li><li><code>disable</code>: Collector reports no domain name for network connections.</li></ul></td><td><code>disable</code></td></tr></tbody></table>

## Anonymization option names

Based on the deployed Collector version, the system offers the same anonymization options under slightly different names. Your organization might have multiple Collector versions deployed at the same time: some earlier and others later than version 26.5.

Use the following table to map anonymization option names for Collector versions earlier and later than 26.5.

<table data-search="false"><thead><tr><th>Setting name for Collector version 26.5 and later</th><th>Setting name for Collector version earlier than 26.5</th></tr></thead><tbody><tr><td>User name</td><td>User name</td></tr><tr><td>User Principal Name (UPN)</td><td>User Principal Name (UPN)</td></tr><tr><td>Application focus time</td><td>Focus time</td></tr><tr><td>User interaction time</td><td>User activity</td></tr><tr><td>Wi-Fi network names</td><td>Wi-Fi network</td></tr><tr><td>Network connections</td><td>Network connections</td></tr><tr><td>Network connections (advanced filtering)</td><td>Data privacy filter <sup>*</sup></td></tr><tr><td>Network connections (advanced filtering)</td><td>Domain name <sup>*</sup></td></tr></tbody></table>

\* The **Data privacy filter** and **Domain name** settings have been merged into **Network connections (advanced filtering)** from Collector version 26.5 onwards.

## Changing the default privacy options

There are various configuration methods to change the default privacy setting for each data type.

The following table shows the different methods and their use cases:

<table data-full-width="true"><thead><tr><th>Configuration method</th><th>Use case</th></tr></thead><tbody><tr><td><a data-mention href="#remote-actions">#remote-actions</a></td><td>Existing installations</td></tr><tr><td><a data-mention href="#windows-collector-installer">#windows-collector-installer</a></td><td>New installations</td></tr><tr><td><a data-mention href="#windows-registry">#windows-registry</a></td><td>Existing installations</td></tr><tr><td><a data-mention href="#macos-collector-installer">#macos-collector-installer</a></td><td>New installations</td></tr><tr><td><a data-mention href="#macos-collector-configuration">#macos-collector-configuration</a></td><td>Existing installations</td></tr></tbody></table>

### Remote actions

Change the Collector configuration parameter for the **User name, Wi-Fi network**, and **UPN** on Windows and macOS operating systems with the *Set anonymization features* remote action.

Configure **Focus time** and **User activity** on Windows and macOS operating systems with the *Set Collector configuration* remote action.

Configure **Network connections**, **Domain name** and **Data privacy filter** on Microsoft Windows and macOS operating systems with the *Set application connectivity configuration* remote action.

The remote actions set the appropriate registry keys and configuration fields for you.

### Windows Collector installer

Use the following optional parameters to change the default values for each data type:

<table data-header-hidden data-full-width="true" data-search="false"><thead><tr><th width="252.666748046875"></th><th width="693.9998779296875"></th></tr></thead><tbody><tr><td><strong>User name</strong></td><td><p>Parameter name: <code>ANONYMIZE_USERNAME</code></p><p>Parameter values:</p><ul><li><code>cleartext</code></li><li><code>hashed</code></li><li><code>no_import</code></li></ul><p>Example: <code>ANONYMIZE_USERNAME=no_import</code></p></td></tr><tr><td><strong>User Principal Name (UPN)</strong></td><td><p>Parameter name: <code>UPN_PRIVACY</code></p><p>Parameter values:</p><ul><li><code>cleartext</code></li><li><code>hashed</code></li><li><code>no_import</code></li></ul><p>Example: <code>UPN_PRIVACY=hashed</code></p></td></tr><tr><td><strong>Focus time</strong></td><td><p>Parameter name: <code>WINDOW_FOCUS_TIME_MONITORING</code></p><p>Parameter values:</p><ul><li><code>enable</code></li><li><code>disable</code></li></ul><p>Example: <code>WINDOW_FOCUS_TIME_MONITORING=enable</code></p></td></tr><tr><td><strong>User activity</strong></td><td><p>Parameter name: <code>USER_INTERACTION_TIME_MONITORING</code></p><p>Parameter values:</p><ul><li><code>enable</code></li><li><code>disable</code></li></ul><p>Example: <code>USER_INTERACTION_TIME_MONITORING=disable</code></p></td></tr><tr><td><strong>Wi-Fi network</strong></td><td><p>Parameter name: <code>ANONYMIZE_WIFI_NETWORK</code></p><p>Parameter values:</p><ul><li><code>enable</code></li><li><code>disable</code></li></ul><p>Example: <code>ANONYMIZE_WIFI_NETWORK=disable</code></p></td></tr><tr><td><strong>Network connections</strong></td><td><p>Parameter name: <code>CONNECTIONS_REPORTING</code></p><p>Parameter values:</p><ul><li><code>enable</code></li><li><code>disable</code></li></ul><p>Example: <code>CONNECTIONS_REPORTING=disable</code></p></td></tr><tr><td><strong>Data privacy filter</strong></td><td><p>Parameter name: <code>DATA_PRIVACY_FILTER</code></p><p>Parameter values: <code>[a comma separated list of ALLOW / BLOCK rules]</code></p><p>Example:</p><pre class="language-csv" data-overflow="wrap"><code class="lang-csv">DATA_PRIVACY_FILTER="ALLOW *.nexthink.com, ALLOW nexthink.eu.nexthink.cloud, ALLOW 100.64.0.0/16, ALLOW [fe80::1ff:fe23:4567:890a]:8080"
</code></pre><p>Refer to the <a data-mention href="#data-privacy-filter">#data-privacy-filter</a> section for more information.</p></td></tr><tr><td><strong>Domain name</strong></td><td><p>Parameter name: <code>DOMAIN_NAME_REPORTING</code></p><p>Parameter values:</p><ul><li><code>enable</code></li><li><code>disable</code></li></ul><p>Example: <code>DOMAIN_NAME_REPORTING=enable</code></p></td></tr></tbody></table>

### Windows registry

To configure the anonymization, perform the following steps:

1. Stop Collector.
2. Modify the registry.
3. Start Collector.

Use the Windows registry to adjust the default value of the relevant key:

<table data-header-hidden data-full-width="true" data-search="false"><thead><tr><th width="256.666748046875"></th><th width="726"></th></tr></thead><tbody><tr><td><strong>User name</strong></td><td><p>Adjust the <strong>UserName</strong> value of <strong>AnonymizedData</strong> key.</p><p>Key name: <code>HKEY_LOCAL_MACHINE\SOFTWARE\Nexthink\Collector\AnonymizedData</code></p><p>Data type: <code>DWORD (32-bit)</code></p><p>Value name: <code>UserName</code></p><p>Value data:</p><ul><li><code>0</code>: <code>cleartext</code></li><li><code>1</code>: <code>hashed</code></li><li><code>2</code>: <code>no_import</code></li></ul></td></tr><tr><td><strong>User Principal Name (UPN)</strong></td><td><p>Adjust the <strong>UpnPrivacy</strong> value of the <strong>AnonymizedData</strong> key.</p><p>Key name: <code>HKEY_LOCAL_MACHINE\SOFTWARE\Nexthink\Collector\AnonymizedData</code></p><p>Data type: <code>DWORD (32-bit)</code></p><p>Value name: <code>UpnPrivacy</code></p><p>Value data:</p><ul><li><code>0</code>: <code>no_import</code></li><li><code>1</code>: <code>hashed</code></li><li><code>2</code>: <code>cleartext</code></li></ul></td></tr><tr><td><strong>Focus time</strong></td><td><p>Adjust the <strong>Enabled</strong> value of the <strong>WindowFocusTimeMonitoring</strong> key.</p><p>Key name: <code>HKEY_LOCAL_MACHINE\SOFTWARE\Nexthink\Collector\WindowFocusTimeMonitoring</code></p><p>Data type: <code>DWORD (32-bit)</code></p><p>Value name: <code>Enabled</code></p><p>Value data:</p><ul><li><code>0</code>: <code>disable</code></li><li><code>1</code>: <code>enable</code></li></ul></td></tr><tr><td><strong>User activity</strong></td><td><p>Adjust the <strong>Disabled</strong> value of the <strong>UserInteractionTimeMonitoring</strong> key.</p><p>Key name: <code>HKEY_LOCAL_MACHINE\SOFTWARE\Nexthink\Collector\UserInteractionTimeMonitoring</code></p><p>Data type: <code>DWORD (32-bit)</code></p><p>Value name: <code>Disabled</code></p><p>Value data:</p><ul><li><code>0</code>: <code>disable</code></li><li><code>1</code>: <code>enable</code></li></ul></td></tr><tr><td><strong>Wi-Fi network</strong></td><td><p>Adjust the <strong>WifiNetwork</strong> value of the <strong>AnonymizedData</strong> key.</p><p>Key name: <code>HKEY_LOCAL_MACHINE\SOFTWARE\Nexthink\Collector\AnonymizedData</code></p><p>Data type: <code>DWORD (32-bit)</code></p><p>Value name: <code>WifiNetwork</code></p><p>Value data:</p><ul><li><code>0</code>: <code>disable</code></li><li><code>1</code>: <code>enable</code></li></ul></td></tr><tr><td><strong>Network connections</strong></td><td><p>Adjust the <strong>ConnectionsReporting</strong> value of the <strong>AppConnectivity</strong> key.</p><p>Key name: <code>HKEY_LOCAL_MACHINE\SOFTWARE\Nexthink\Collector\AppConnectivity</code></p><p>Data type: <code>DWORD (32-bit)</code></p><p>Value name: <code>ConnectionsReporting</code></p><p>Value data:</p><ul><li><code>0</code>: <code>disable</code></li><li><code>1</code>: <code>enable</code></li></ul></td></tr><tr><td><strong>Data privacy filter</strong></td><td><p>Adjust the <strong>DataPrivacyFilter</strong> value of the <strong>AppConnectivity</strong> key.</p><p>Key name: <code>HKEY_LOCAL_MACHINE\SOFTWARE\Nexthink\Collector\AppConnectivity</code></p><p>Data type: <code>String (REG_SZ)</code></p><p>Value name: <code>DataPrivacyFilter</code></p><p>Value data example:</p><pre class="language-csv" data-overflow="wrap"><code class="lang-csv">"ALLOW *.nexthink.com, ALLOW nexthink.eu.nexthink.cloud, ALLOW 100.64.0.0/16, ALLOW [fe80::1ff:fe23:4567:890a]:8080"
</code></pre><p><br><br>Refer to the <a data-mention href="#data-privacy-filter">#data-privacy-filter</a> section for more information.</p></td></tr><tr><td><strong>Domain name</strong></td><td><p>Adjust the <strong>DomainNameReporting</strong> value of the <strong>AnonymizedData</strong> key.</p><p>Key name: <code>HKEY_LOCAL_MACHINE\SOFTWARE\Nexthink\Collector\AnonymizedData</code></p><p>Data type: <code>DWORD (32-bit)</code></p><p>Value name: <code>DomainNameReporting</code></p><p>Value data:</p><ul><li><code>0</code>: <code>disable</code></li><li><code>1</code>: <code>enable</code></li></ul></td></tr></tbody></table>

### macOS Collector installer

Use the following optional parameters to change the default values for each data type:

<table data-header-hidden data-search="false"><thead><tr><th width="258"></th><th width="662"></th></tr></thead><tbody><tr><td><strong>User name</strong></td><td><p>Parameter name: <code>anonymize_username</code></p><p>Parameter values:</p><ul><li><code>cleartext</code></li><li><code>hashed</code></li><li><code>no_import</code></li></ul><p>Example: <code>anonymize_username=hashed</code></p></td></tr><tr><td><strong>User Principal Name (UPN)</strong></td><td><p>Parameter name: <code>upn_privacy</code></p><p>Parameter values:</p><ul><li><code>cleartext</code></li><li><code>hashed</code></li><li><code>no_import</code></li></ul><p>Example: <code>upn_privacy=hashed</code></p></td></tr><tr><td><strong>Focus time</strong></td><td><p>Parameter name: <code>windows_focus_time_monitoring</code></p><p>Parameter values:</p><ul><li><code>enable</code></li><li><code>disable</code></li></ul><p>Example: <code>windows_focus_time_monitoring=enable</code></p></td></tr><tr><td><strong>User activity</strong></td><td><p>Parameter name: <code>user_interaction_time_monitoring</code></p><p>Parameter values:</p><ul><li><code>enable</code></li><li><code>disable</code></li></ul><p>Example: <code>user_interaction_time_monitoring=disable</code></p></td></tr><tr><td><strong>Wi-Fi network</strong></td><td><p>Parameter name: <code>anonymize_wifi_network</code></p><p>Parameter values:</p><ul><li><code>enable</code></li><li><code>disable</code></li></ul><p>Example: <code>anonymize_wifi_network=disable</code></p></td></tr><tr><td><strong>Network connections</strong></td><td><p>Parameter name: <code>connections_reporting</code></p><p>Parameter values:</p><ul><li><code>false</code></li><li><code>true</code></li></ul><p>Example: <code>connections_reporting=false</code></p></td></tr><tr><td><strong>Data privacy filter</strong></td><td><p>Parameter name: <code>data_privacy_filter</code></p><p>Parameter values: <code>[a comma separated list of ALLOW / BLOCK rules]</code></p><p>Example:</p><pre class="language-csv" data-overflow="wrap"><code class="lang-csv">data_privacy_filter="ALLOW *.nexthink.com, ALLOW nexthink.eu.nexthink.cloud, ALLOW 100.64.0.0/16, ALLOW [fe80::1ff:fe23:4567:890a]:8080"
</code></pre><p>Refer to the <a data-mention href="#data-privacy-filter">#data-privacy-filter</a> section for more information.</p></td></tr><tr><td><strong>Domain name</strong></td><td><p>Parameter name: <code>domain_name_reporting</code></p><p>Parameter values:</p><ul><li><code>false</code></li><li><code>true</code></li></ul><p>Example: <code>domain_name_reporting=true</code></p></td></tr></tbody></table>

### macOS Collector configuration

To configure the anonymization, perform the following steps:

1. Stop Collector.
2. Modify the configuration file.
3. Start Collector.

Use the macOS Collector configuration file `config.json` located in the folder `/Library/Application Support/Nexthink` to add the following parameters on a new line at the end of the file before the closing curly bracket:

<table data-header-hidden data-full-width="true" data-search="false"><thead><tr><th width="262"></th><th width="606"></th></tr></thead><tbody><tr><td><strong>User name</strong></td><td><p>Parameter name: <code>AnonymizeUserName</code></p><p>Parameter values:</p><ul><li><code>cleartext</code></li><li><code>hashed</code></li><li><code>no_import</code></li></ul><p>Example of the end of a configuration file:</p><pre class="language-json"><code class="lang-json">...
"AnonymizeUserName": "no_import"
}
</code></pre></td></tr><tr><td><strong>User Principal Name (UPN)</strong></td><td><p>Parameter name: <code>UpnPrivacy</code></p><p>Parameter values:</p><ul><li><code>cleartext</code></li><li><code>hashed</code></li><li><code>no_import</code></li></ul><p>Example of the end of a configuration file:</p><pre class="language-json"><code class="lang-json">...
"UpnPrivacy": "cleartext"
}
</code></pre></td></tr><tr><td><strong>Focus time</strong></td><td><p>Parameter name: <code>EnableWindowFocusTimeMonitoring</code></p><p>Parameter values:</p><ul><li><code>false</code></li><li><code>true</code></li></ul><p>Example of the end of a configuration file:</p><pre class="language-json"><code class="lang-json">...
"EnableWindowFocusTimeMonitoring": "true"
}
</code></pre></td></tr><tr><td><strong>User activity</strong></td><td><p>Parameter name: <code>DisableUserInteractionTimeMonitoring</code></p><p>Parameter values:</p><ul><li><code>false</code></li><li><code>true</code></li></ul><p>Example of the end of a configuration file:</p><pre class="language-json"><code class="lang-json">...
"DisableUserInteractionTimeMonitoring": "true"
}
</code></pre></td></tr><tr><td><strong>Wi-Fi network</strong></td><td><p>Parameter name: <code>AnonymizeWifiNetwork</code></p><p>Parameter values:</p><ul><li><code>false</code></li><li><code>true</code></li></ul><p>Example of the end of a configuration file:</p><pre class="language-json"><code class="lang-json">...
"AnonymizeWifiNetwork": "false"
}
</code></pre></td></tr><tr><td><strong>Network connections</strong></td><td><p>Parameter name: <code>ConnectionsReporting</code></p><p>Parameter values:</p><ul><li><code>false</code></li><li><code>true</code></li></ul><p>Example of the end of a configuration file:</p><pre class="language-json"><code class="lang-json">...
"ConnectionsReporting": "false"
}
</code></pre></td></tr><tr><td><strong>Data privacy filter</strong></td><td><p>Parameter name: <code>DataPrivacyFilter</code></p><p>Parameter values:<code>[a comma separated list of ALLOW / BLOCK rules]</code></p><p>Example of the end of a configuration file:</p><pre class="language-json" data-overflow="wrap"><code class="lang-json">...
"DataPrivacyFilter": "ALLOW *.nexthink.com, ALLOW nexthink.eu.nexthink.cloud, ALLOW 100.64.0.0/16, ALLOW [fe80::1ff:fe23:4567:890a]:8080"
}
</code></pre><p>Refer to the <a data-mention href="#data-privacy-filter">#data-privacy-filter</a> section for more information.</p></td></tr><tr><td><strong>Domain name</strong></td><td><p>Parameter name:<code>DomainNameReporting</code></p><p>Parameter values:</p><ul><li><code>false</code></li><li><code>true</code></li></ul><p>Example of the end of a configuration file:</p><pre class="language-json"><code class="lang-json">...
"DomainNameReporting": "true"
}
</code></pre></td></tr></tbody></table>

## Data privacy filter

This option allows you to configure Collector to report connections only to specific destinations.

Use the [#windows-registry](#windows-registry "mention") or [#macos-collector-configuration](#macos-collector-configuration "mention") method to configure the default privacy options.

The `DataPrivacyFilter` configuration parameter takes a comma-separated list of `ALLOW` and `BLOCK` filter rules. Each filter rule takes the following form: `ALLOW | BLOCK [PATTERN]`

There are four options for the `[PATTERN]`:

* A domain name with an optional port number, for example: `abc.intra.nexthink.com:443`
* A domain name with a leading `*` wildcard and an optional port number, for example: `*.nexthink.com:443`
* An IP address (IPv4 or IPv6) with optional port number, for example: `192.0.2.123:443`
* A subnet mask, for example: `192.0.2.0/24`

{% hint style="info" %}
Enclose IPv6 addresses in brackets when you combine them with a port number, for example: `ALLOW [fe80::1ff:fe23:4567:890a]:8080`. Brackets are optional for IPv6-based rules without a port number.
{% endhint %}

### Domain name with wildcard

In domain name based patterns, use a `*` wildcard to match zero, one, or multiple sub-domains.

For example, `ALLOW *.nexthink.com` matches all these domain names:

* `nexthink.com`
* `intra.nexthink.com`
* `abc.intra.nexthink.com`

The domain name based patterns with a `*` wildcard must start with the `*` wildcard instead of a sub-domain.

Correct example:

* `ALLOW *.nexthink.com`

Incorrect examples:

* `ALLOW intra.*.nexthink.com`
* `ALLOW nexthink.*`
* `ALLOW *nexthink.com`

### Default rules

There are two default rules:

* System default rule: `BLOCK *` ("block everything else"). The system automatically adds this rule, if there is at least one user-defined rule.
* User-defined default rule: `ALLOW *` ("allow everything else").

The user-defined default rule overwrites the system default rule.

These defaults apply to the following cases:

| Case                                                                  | Default                                                                                                             |
| --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| The filter is not configured or parameter value is empty.             | The Collector reports all connections.                                                                              |
| The filter is configured and there is at least one user-defined rule. | The Collector reports connections according to the user-defined `ALLOW` / `BLOCK` rules and blocks everything else. |

{% hint style="info" %}
If you define only `BLOCK` rules, the Collector reports no connections.
{% endhint %}

### Filter rule evaluation

Collector evaluates rules in the order from more specific to less specific:

1. IP address with port number.
2. IP address without port number.
3. Domain name with many sub-domains before domain names with fewer sub-domains.
4. Domain name with port before domain name without port.
5. Domain name without wildcard (`*`) before domain name with a wildcard.
6. Subnet mask.
7. User-defined default rule (`ALLOW *`) before system default rule (`BLOCK *`).

### Considerations

* You can configure up to 1,000 filter rules. The system only evaluates the first 1,000 if there are more filter rules.
* Rules based evaluation on domain names do not apply to connections without a domain name.
* In case of a connection with multiple domain names and conflicting matching rules (`ALLOW` / `BLOCK`), the `ALLOW` rule overrules the `BLOCK` pattern.
* Collector does not support IPv4 addresses in IPv6 format. An IPv4 filter rule in IPv6 format does not match connections with the corresponding IPv4 address.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.nexthink.com/platform/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/configuring-collector-level-anonymization/configuring-collector-level-anonymization-classic.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
