For more control, use Filters. Blocking sends emails to Spam, but Filters can automatically delete them, archive them, or categorize them.
Every email is sent from a server with a specific IP address. If that IP has a history of sending spam, Gmail will flag it. blocklist gmail