Guides and sections

Cyber Guide

How to block a domain in Gmail

Level: Beginner

Yes, with a filter. Gmail's Block button only stops one sender, so to stop a whole domain you make a filter on the Gmail website. It takes about a minute, and step 4 shows you how to check it is catching the right emails before you save it.

By Schottlerworks. Last checked: November 2026.

Before you start

A domain is the part of an email address after the @ sign. In [email protected] the domain is example.com.

A filter is a saved rule in Gmail. It looks at each new email, and when the email matches your search it does something you chose, such as deleting it.

You need:

  • A Gmail account.
  • A web browser on a computer. Google describes filters for the computer version of Gmail.
  • The domain written down, for example example.com.

If your Gmail comes from a workplace or school, an administrator can block whole domains for everyone in the organisation. Google's page for administrators says they do this in the Admin console. The steps below are for personal accounts.

Block a domain in Gmail on the web

Gmail has two tools. The Block button blocks one sender. A filter can be set up to cover a domain. Start with the filter.

Block a whole domain with a filter

  1. Open Gmail.
  2. In the search box at the top, select Show search options.
  3. In the From box at the top of the search options, type @example.com, using the domain you want to block.
  4. Select Search. Check that every email in the results is from that domain. This is the normal way to make sure a filter is right before you save it.
  5. At the bottom of the search window, select Create filter.
  6. Tick the box that deletes the email.
  7. Select Create filter.
The Gmail search box. The Show search options button is the slider icon at its right-hand end.
Step 2. Show search options is the slider icon at the right-hand end of the search box.
Gmail's search options with @example.com typed in the From box. Create filter and Search are at the bottom right.
Steps 3 to 5. The domain goes in the From box. Search and Create filter are at the bottom of the same window.
Gmail's filter choices with Delete it ticked and the Create filter button at the bottom right.
Steps 6 and 7. Tick Delete it, then select Create filter.

Block one sender with the Block button

This blocks a single address, not the domain. Future emails from that address go to Spam.

  1. Open Gmail.
  2. Open a message from the sender.
  3. At the top right, next to Reply, select More.
  4. Select Block followed by the sender's name.

Block a domain in Gmail on your computer

Google does not publish a separate Gmail program for computers. On a computer, Gmail is the website, so the steps above are the computer steps.

If you read your Gmail inside another program, set the block in Gmail on the web. Microsoft says new Outlook for Windows cannot block senders for Gmail accounts, and that the block has to be set with the provider.

Block a domain in the Gmail phone app

The Gmail app for Android and iPhone blocks one sender at a time and cannot make filters.

To block one sender in the app, on Android or iPhone:

  1. Open the Gmail app.
  2. Open a message from the sender.
  3. At the top right, next to Reply, tap More.
  4. Tap Block followed by the sender's name.

A filter made on the website is saved to your Google account, so it works on mail before it reaches any device.

If you only have a phone, open mail.google.com in the phone's browser and switch to the desktop version of the site. Then follow the steps in Block a whole domain with a filter.

A note on the phone route. Google's pages do not describe the phone-browser route, so it may look different on your phone.

Check it worked, and undo it

To see your filters and blocked addresses:

  1. Open Gmail on a computer.
  2. At the top right, open Settings.
  3. Select See all settings.
  4. At the top, select Filters and Blocked Addresses.

Your filter should be listed there. To remove it, find the filter and select Delete. To unblock a single sender, tick the box next to the address and select Unblock selected addresses.

A filter acts on new mail. Google also notes that a reply to a filtered message is only filtered if it meets the same search criteria.

What this will not do

  • It will not stop a scammer who changes domain each time. Each new domain needs its own filter.
  • A filter that deletes mail removes it from sight. If a real message is caught, check Trash soon after.
  • The Block button covers one address. A sender with many addresses at one domain slips through it.
  • It will not help with phishing. If an email asks for personal information, report it as phishing. Google's pages describe reporting spam and phishing from within Gmail.
  • Do not block a large public domain such as gmail.com or outlook.com. That would block every real person who uses it.
  • If someone uses Gmail to harass or threaten you, Google says they break its Program Policies. If you feel in danger, contact your local authorities.

More guides: Outlook, Yahoo Mail.

Sources

Last checked: November 2026. Steps and menu names come from these pages.