Block all traffic except localhost?


I am using Comodo Internet Security Premium.

I would like to use the firewall to block access to all public websites, and only to allow access to all under http://localhost/

Is it possible to do that using the CIS firewall?

Any advice much appreciated.