How to block emails from a specific domain in Gmail

Hi! Is it possible to block incoming emails from a specific sender? I keep getting emails on my Gmail account from different users, but they all have the same domain. Is there a way to block these emails?

Search for the domain (i.e. @example.invalid) in the From field and create a filter from it to delete those messages.