# Hide sensitive data in URL

If one or several URL might contain sensitive data as a URL parameter, you can tell the tag to avoid collecting it.

## Block simple URL parameter

1. Go to the [sensitive data page](https://app2.abtasty.com/settings/tracking/sensitive-data)
2. Set the parameter you want the tag to ignore
   1. for example, input `email` if you want to remove an email from this sample URL: `https://www.mywebsite.com/account?email=email@example.com` .
3. You can add as many parameters as you need

## Block a parameter based on a regular expression

1. Go to the [sensitive data page](https://app2.abtasty.com/settings/tracking/sensitive-data)
2. Set the required regular expression that the tag needs to evaluate to ignore a URL parameter
   1. for example, to define the URL <https://example.com/url-part-to-hide/other-part>, enter the following expression (https?://example.com/).\*?(/other-part)

{% hint style="info" %}
As evaluating a regular expression as a performance cost, always prefer a simple URL parameter filter if possible.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://docs.abtasty.com/account/performance-and-security/hide-sensitive-data-in-url.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
