> ## Documentation Index
> Fetch the complete documentation index at: https://help.autoproctor.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Restrict Test Access by Email Address

> Limit who can take your test by restricting access to specific email domains or individual email addresses using Login restrictions.

**Login restrictions** let you control exactly who can take your test by filtering candidates based on their email address. This prevents unauthorized access even if someone shares or discovers your test link.

## How to Set Up Email Restrictions

**1. Open the Access & login Section**

Go to your [**Tests**](https://www.autoproctor.co/test-admin/home/) page, click **Settings** next to the test, and choose **Access & login** from the list of sections.

**2. Add Domain or Email Restrictions**

In **Login restrictions**, enter the email domains or specific email addresses you want to allow, separated by commas. You can combine both types in the same field (see the examples below).

> [!WARNING]
>
> **Login restrictions** hold up to **30 entries**, counting domains and email addresses together. To allow more than 30 specific people, use [unique test URLs](https://help.autoproctor.co/invite-candidates-via-email.md) to send each candidate their own link instead.

**3. Save**

Click **Save settings**.

![Login restrictions field with a Learn More link, the placeholder school.edu, alumni.school.edu, and the hint Only emails ending with these domains can attempt. Comma-separated](https://mintcdn.com/autoproctor/4bsvsaJCp4E0AK7P/images/restrict-access-by-email/login-restrictions-empty.png?fit=max\&auto=format\&n=4bsvsaJCp4E0AK7P\&q=85\&s=27d08bbd0bc54fdb7cdd18067c8530e7)

The Login restrictions field before anything is entered

| To allow | Enter in **Login restrictions** |
| - | - |
| Everyone at one domain | `@abc.com` |
| Everyone at several domains | `@abc.com, @xyz.com` |
| One domain plus specific people | `@abc.com, guest@gmail.com` |
| Only specific people | `ana@abc.com, guest@gmail.com` |

> [!WARNING]
>
> Separate entries with commas, not spaces. An entry that contains a space is rejected when you save.

## Domain-Based Restrictions

You can restrict access to candidates whose email addresses end with specific domains. For example, entering `@abc.com` and `@xyz.com` allows only candidates with those email domains to take the test.

![Login restrictions field containing @abc.com, @xyz.com](https://mintcdn.com/autoproctor/4bsvsaJCp4E0AK7P/images/restrict-access-by-email/login-restrictions-domains.png?fit=max\&auto=format\&n=4bsvsaJCp4E0AK7P\&q=85\&s=59fe92632f7e3387f949910ba682064c)

Two domains entered in Login restrictions

## Specific Email Restrictions

You can also permit individual email addresses alongside domain restrictions. This is useful when most candidates share a domain but a few external participants need access.

For example, you can allow all users whose email ends with `@abc.com` plus specific individual email addresses like `guest@gmail.com`.

![Login restrictions field containing @abc.com, guest@gmail.com](https://mintcdn.com/autoproctor/4bsvsaJCp4E0AK7P/images/restrict-access-by-email/login-restrictions-domain-and-email.png?fit=max\&auto=format\&n=4bsvsaJCp4E0AK7P\&q=85\&s=4aefdac155bd4fb04934389947a651ee)

A domain and one specific email address in Login restrictions

> [!NOTE]
>
> Email restrictions work in conjunction with the candidate's [login method](https://help.autoproctor.co/candidate-login-methods.md). The candidate must sign in with an email address that matches one of the allowed domains or addresses you specified.

## Related Resources

* [Candidate Login Methods](https://help.autoproctor.co/candidate-login-methods.md) - Understand available authentication options for candidates
* [Restricting to Specific Users](https://help.autoproctor.co/restrict-access-to-candidates.md) - Other methods for limiting test access
* [Inviting Candidates via Email](https://help.autoproctor.co/invite-candidates-via-email.md) - Generate unique per-candidate test links
* [Advanced Settings](https://help.autoproctor.co/advanced-exam-settings.md) - Configure Login restrictions and other advanced test options
* [Best Practices for Test Creators](https://help.autoproctor.co/best-practices-for-exam-creators.md) - Tips for smooth test administration


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.