# Domain Whitelist

The Domain Whitelist feature lets you control which domains are allowed to send data to Optibase. This is useful for improving security and preventing data from being collected from unintended environments.

<figure><img src="/files/ONSavFgTG8QVWw0OPzNe" alt=""><figcaption></figcaption></figure>

***

### How it works

By default, Optibase will gather data from any domain where the custom script is installed.

When you add domains to the whitelist, only those domains will be allowed to send data. All others will be ignored — even if the script is present.

***

### How to whitelist a domain

1. Go to your Workspace Settings
2. Click on Domain Whitelist
3. Enter your domain (e.g. yourwebsite.com)
4. Click Add domain to whitelist

Once added, Optibase will only collect data from the domains listed here.

> ℹ️ If the whitelist is empty, data will be collected from all domains where the script is installed.

***

Use this setting to prevent accidental data pollution from staging, development, or cloned sites.


---

# 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.optibase.io/features/general/domain-whitelist.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.
