How to block someone on Gmail who hasn't emailed you
Gmail’s standard Block button only appears inside an open email, which means you can't use it if a sender hasn't emailed you yet. Fortunately, you can easily block any email address ahead of time by creating a custom filter that sends their future messages straight to the trash.
- Open Gmail.
- Click the settings button (gear icon).
-
Click See all settings.

- Click Filters and Blocked Addresses.
-
Click Create a new filter.

- Enter the email address you want to block in the From field.
-
Click Create filter.

- Check the box for Delete it.
-
Click Create filter again to save it.

The email address is now blocked.
Note: Even though the filter option is labeled Delete it, Gmail actually moves these future messages directly to your Trash folder. They will remain there for 30 days before being permanently erased, giving you a safety net if you ever need to recover a message.
Related:
How to block Google Forms spam emails in Gmail
How to automatically move emails to a folder in Gmail
Fix: 'Server denied POP3 access' on Gmail (step by step)