# Restrict to Domain

{% hint style="info" %}
Heads Up! This is a PRO feature. You must have an active subscription to use this feature.
{% endhint %}

You can restrict the form from sending only through a whitelisted domain. This will potentially reduce spam attacks. So even if someone else got the access key, they cannot send emails to you. Only emails from your website are counted.

To enable this feature, you must add the domains you wanted to use in form settings. You can add multiple domains separated with comma. Do not add protocols like https\:// in the domain name.

{% hint style="info" %}
Only root or subdomain allowed. Once added forms will only work on the added domain and it will not work locally. So you must add this feature only after testing.&#x20;
{% endhint %}

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


---

# 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.web3forms.com/getting-started/pro-features/restrict-to-domain.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.
