Newest version of Avast has a webshield provider that you must allow in your firewall.
Did you do that?