You can block emails on your Mac if you don't want to get mail from a certain sender using the Mail app.
You can block pop-ups on your Mac using the built-in Safari web browser, or on other web browsers like Google Chrome or ...