Blocking addresses

How do I configure my firewall to block all communication with certain addresses?  I read that this might help in reducing the risk of trojans....any ideas/advice?

 

Thanks