The fastest way to block a sender in Gmail

Open the spam email, click the three dots in the top right corner, and select "Block [sender's name]." Gmail will automatically send future emails from that address to your spam folder and delete them after 30 days. This takes five seconds and works for any single sender you want to stop seeing.

If you want to block an entire domain — say, all emails from @spamcompany.com — you cannot do it through the block button alone. Instead, use Gmail's filter feature: click the three dots, select "Create filter," type the domain name in the "From" field, and choose "Delete" or "Skip the Inbox" as your action. This catches every address from that domain, even if the sender changes their username.

Blocking and filtering are permanent until you undo them. You can see all your blocked senders and filters by going to Settings > Filters and Blocked Addresses. If you block someone by mistake, unblock them from that same page.

Key Takeaways

  • The block button (three dots > Block) stops one sender and automatically deletes their future emails after 30 days.
  • To block an entire domain or create a rule for multiple addresses, use the filter feature (three dots > Create filter) instead.
  • Gmail's spam folder catches most unsolicited bulk email automatically, so check it before creating a filter to avoid blocking something you might want later.
  • Unsubscribe links in legitimate marketing emails are faster than blocking — they remove you from the sender's list rather than hiding future mail.
  • You can see and manage all your blocked senders and active filters in Settings > Filters and Blocked Addresses.

Why Gmail's spam folder catches most junk before you see it

Gmail uses machine learning to sort incoming mail into your inbox, spam folder, and promotions tab. It looks at sender reputation, email content, links, and whether thousands of other Gmail users marked similar messages as spam. Most unsolicited bulk email never reaches your inbox — it lands in spam automatically.

This means you should check your spam folder before blocking a sender. If an email is already there, Gmail is already handling it. Blocking adds a manual rule on top of the automatic filtering, which is useful only if legitimate mail from that sender keeps landing in spam by mistake, or if you want to be absolutely certain you never see them again.

The promotions tab works the same way. If you subscribe to newsletters or marketing emails, Gmail sorts them there automatically so they do not clutter your inbox. You can turn off the promotions tab entirely in Settings > Labels if you prefer everything in one place.

How to use filters for more control than blocking

Filters let you create rules based on sender, subject line, words in the email body, or file attachments. Open Settings > Filters and Blocked Addresses > Create a new filter. Type your criteria in the search fields — for example, "From: noreply@" to catch automated messages, or "Subject: viagra" to catch a specific spam topic.

Once you have entered your criteria, click "Create filter." You can then choose what happens to emails that match: send them to spam, delete them permanently, skip your inbox, or explore a label. Most people choose "Delete" or "Skip the Inbox" for spam. If you are unsure whether you will want the emails later, use "Skip the Inbox" instead — they will still exist in a searchable archive, but you will not see them.

Filters work retroactively on emails already in your account if you check the "Also explore filter to matching conversations" box. This is useful if you have been getting spam from the same sender for months and want to clean up your inbox in one step.

Unsubscribe links and why they matter more than you think

Legitimate marketing emails — from retailers, news sites, or services you signed up for — include an unsubscribe link at the bottom. Clicking it removes you from that sender's mailing list. This is faster and cleaner than blocking because it stops the email at the source rather than hiding it after it arrives.

Spam emails often do not include a real unsubscribe link, or the link is fake and confirms your email address is active (which makes you a target for more spam). If the unsubscribe link looks suspicious or does not work, block or filter the sender instead. Real companies are required by law to honor unsubscribe requests within ten business days, so if you unsubscribe and keep getting mail from the same sender after two weeks, that is a sign the sender is not legitimate.

Check the email header to tell the difference. If you see "List-Unsubscribe" in the header (click the three dots > Show original to see it), the sender is following standard email rules and the unsubscribe link is probably real. If it is missing, you are dealing with spam, not marketing mail.

What to do if blocking and filtering are not enough

If you receive a large volume of spam from many different senders, or if the spam is harassing or threatening, blocking individual senders will not solve the problem. Instead, consider changing your email address or using Gmail's advanced security features.

Gmail's Security Checkup (myaccount.google.com/security-checkup) shows you which apps and websites have access to your Gmail account. Spammers sometimes gain access by compromising a password or tricking you into granting permission to a fake app. Removing access to suspicious apps can stop spam at the source. You can also turn on two-step verification to make your account harder to compromise.

If you are being harassed or receiving threats, report the email to Gmail by clicking the three dots and selecting "Report phishing" or "Report spam." Gmail forwards these reports to its abuse team, which can take action against the sender's account or domain. This does not block the email for you, but it helps protect other Gmail users.

How to avoid giving your email to spammers in the first place

Most spam arrives because your email address ended up on a mailing list — either because you signed up for something and the company sold your address, or because spammers guessed it or harvested it from a public website. You cannot undo that, but you can slow down future spam by being selective about where you share your address.

Use a separate email address for online shopping, social media, and services you do not trust. Gmail makes this straightforward: you can create multiple accounts for free, or use Gmail's "+" feature by adding +shopping or +newsletter to your address (example@gmail.com becomes example+shopping@gmail.com). Emails sent to the +version still arrive in your main inbox, but you can filter them separately if they start generating spam.

Avoid posting your email address on public websites, forums, or social media. If you must publish it, spammers use automated tools to scrape it. If you are running a website and need to show contact information, use a contact form instead of a visible email address.

Frequently Asked Questions

Does blocking someone in Gmail prevent them from emailing me?

No. Blocking prevents their emails from reaching your inbox — they go straight to spam and are deleted after 30 days. The sender does not know they are blocked. If you need to prevent someone from contacting you at all, you would need to use a different email address or contact your email provider's abuse team if the contact is harassing.

Can I block emails by subject line or content instead of by sender?

Yes, use filters instead of the block button. Go to Settings > Filters and Blocked Addresses > Create a new filter, and type keywords in the "Subject" or "Has the words" field. You can filter by attachment type too — for example, filter out emails with .exe files if you are concerned about malware.

What happens to emails I block — are they deleted or just hidden?

Blocked emails go to your spam folder and are automatically deleted after 30 days. They are not hidden in a separate folder you can access later. If you want to keep the option to read them, use a filter set to "Skip the Inbox" instead of blocking, which keeps them in your archive.

Will unsubscribing from a mailing list stop all spam from that sender?

Unsubscribing removes you from legitimate marketing lists, but spammers often ignore unsubscribe requests or use it to confirm your email is active. If you unsubscribe and keep receiving emails from the same sender after two weeks, block or filter them instead.

Can I block emails based on where they came from, like a specific country?

Gmail does not have a built-in country filter, but you can block by domain. If spam is coming from addresses ending in a specific domain, use a filter with "From: @domain.com" to catch all of them. For broader filtering, you would need a third-party email security tool, which is rarely necessary for personal Gmail accounts.