Can I block a whole domain in Gmail?
Last reviewed: October 16, 2026 · Markdown version
Not with the Block button. Gmail's block works on a single sender, picked from a message you have open: "Open the message from the sender", then More, then Block "{sender}" (Block an email address in Gmail, read 16 October 2026). That page, in its computer, Android and iPhone versions, mentions no option for a domain, and the list it keeps under Filters and Blocked Addresses is a list of senders. To catch everything from @example.com, whichever address it comes from, you build a filter instead. On a work or school account your administrator has one more tool, covered at the end.
The filter that does the job
Google publishes the pattern, though on a page written for work and school accounts. Its table of filter ideas matches a whole organisation with a wildcard in the From field: "From: *@your_organization.com", with the example "*@solarmora.com" (Advanced Gmail filters for work or school, read 16 October 2026). Swap in the domain you want gone. The steps for creating it are the same ones Google gives for any filter:
- In the search box at the top, click Show search options.
- Type the domain pattern into From.
- Click Search first. Google suggests exactly this check: "If you want to check that your search worked correctly, see what emails show up by clicking Search."
- At the bottom of the search window, click Create filter, choose the action, and click Create filter again.
Those steps come from Create rules to filter your emails (read 16 October 2026). Google's consumer filter page and its search operator list give no domain example of their own; the operator page's samples for from: are a name, a full address and from:me (Refine searches in Gmail, read 16 October 2026). That is why step 3 matters. If the search shows the mail you expect, and nothing from anyone else, the filter will catch the same mail.
Which action to pick
Google's filter page says a filter can "send email to a label, or archive, delete, star, or automatically forward your mail." For a domain you never want to hear from, Delete is the closest thing to a block. It sends matching mail to Trash, where, per Google's delete page, "After 30 days" the message "is permanently deleted" (Delete messages in Gmail, read 16 October 2026). Choose Archive or a label instead if some of that domain's mail might still matter, such as receipts from a shop whose newsletters you hate.
This differs from a block in where the mail ends up. Blocking routes a sender to Spam, because "After you block the sender, all future emails from them go to Spam" (the block page above). A delete filter routes the whole domain to Trash. Neither stops the mail being sent to you.
Mail you already have
Google's filter page talks about managing "incoming mail", and it does not say that a new filter also acts on messages already in your account (the Create rules to filter your emails page above). Do the backlog by hand. The search from step 3 already lists it: tick the Select box, use the "Select all conversations" link Google describes on its delete page when there is more than one page, then click Delete. Clearing one sender's backlog walks through the same move for a single address.
Two traps with domain filters
- Subdomains. Companies often mail from
news.example.comormail.example.comrather than the bare domain. Neither Google's work-filter table nor its operator list says whether a pattern for one catches the other (Advanced Gmail filters for work or school and Refine searches in Gmail, both read 16 October 2026), so search for each variant you see in the From line before trusting the filter. - Shared domains. A pattern for a big free email provider would sweep up every person who uses it. Keep domain filters for companies, not for mail services. That is our advice rather than Google's.
Work and school accounts: a real domain block
Only an administrator can stop a domain's mail arriving at all. Google's admin page says "As an administrator, you can help prevent spam and malicious email by blocking email addresses or entire domains. This way, you're automatically rejecting messages from them", from the Admin console under Gmail, Spam, Phishing and Malware, Blocked senders. Google adds that "Changes can take up to 24 hours but typically happen more quickly" (Block messages from an email address or domain, read 16 October 2026). If your address ends in your employer's name and the junk is company-wide, that request goes to your IT team. On a personal Gmail account there is no admin console, and the filter is the tool you have.
Related: Blocking one sender · How Gmail filters work · Clearing one sender's backlog · Stopping spam