Adding website to block via /etc/hosts not working
Safari keeps its own ephemeral DNS cache. If you've just added the record to /etc/hosts, try quitting Safari, running dscacheutil -flushcache and restarting the computer.