---
title: "Blocking domains from submitting forms"
date: "2024-02-14T06:18:38+00:00"
summary: "Protect your forms and content by blocking specific domains from submissions. Learn how to configure, associate, and test domain restrictions in Campaign Studio for improved lead quality."
image:
type: "page"
url: "/campaign-studio/blocking-domains-submitting-forms"
id: "d66d578b-be0a-46e2-a7fb-d2a11cb28304"
---

Campaign Studio allows you to restrict specific domains from sending forms. By doing so, you can ensure that your proprietary content is safe and reduce the number of unqualified leads.

To do so, perform the following steps:

*   [Configuring blocked domains](#configuring-blocked-domains)
    
*   [Associating blocked domains to form](#associating-blocked-domains-to-form)
    
*   [Testing](#testing)
    

Configuring blocked domains
---------------------------

To configure blocked domains:

1.  Sign in to your Campaign Studio account.
    
2.  Click the **Settings** icon on the top right corner and go to **Configuration** > **Form Settings**.
    
    ![Configuring blocked domains](https://acquia.widen.net/content/xk1pylfsjq/jpeg/campaign-studio_configuring-blocked-domains.jpeg?position=c&color=ffffffff&quality=80&u=kymscu)
    
3.  Specify all the domains in the provided text box. You can restrict either specific email aliases that belong to a domain or an entire domain. To block the entire domain, you can use wildcards (\*).
    
4.  Click **Save & Close**.
    

Associating blocked domains to form
-----------------------------------

To associate the configured blocked domains to a form:

1.  Sign in to your Campaign Studio account.
    
2.  Go to **Components** > **Forms**.
    
3.  To apply the configured blocked domains to an existing form, access an existing form. Alternatively, create a new form.
    
4.  Go to the **Fields** tab and select **Email** in the **Add a new field** field.
    
5.  Enter the required fields, as appropriate.
    
6.  Under the **Validation** tab, set the **Domain name submission filter** to **Yes**.
    
    ![Associating blocked domains to forms](https://acquia.widen.net/content/seuhpfz3wm/jpeg/campaign-studio_associating-blocked-domains-to-forms.jpeg?position=c&color=ffffffff&quality=80&u=kymscu)
    
7.  (_Optional_) Update the validation message.
    
8.  Save the changes.
    

Testing
-------

To test the successful association of blocked domains to forms:

1.  Access the form with which you have associated the blocked domains.
    
2.  Preview the form.
    
3.  In **Email**, specify one of your blocked email aliases or domains.
    
    ![Testing blocked domains](https://acquia.widen.net/content/yftesump9v/jpeg/campaign-studio_testing-blocked-domains.jpeg?position=c&color=ffffffff&quality=80&u=kymscu)
    
4.  Try to submit the form.
    
    You will see an error message. This confirms the successful association of blocked domains/email aliases with the form.