avast isn't a firewall as such, so though it can probably be done in the Web Shield, Customize, URL Blocking, Add and enter the IP address. I don't know if the URL Blocking is able to take IPs or only domain name blocking, etc.
However, I feel it is probably better being blocked in your firewall.