Avast is a anti-virus application, not a spam filter.
If you want to block websites, you can use the hosts file to do so. Info 1 Info 2
Many browsers also have a option to do so. eg the security advisor in Internet Explorer