Can You Create a "Whitelist" with Firefox or IE?

Is it possible to create a “whitelist” of allowed domains using Firefox, IE, or some other browser? By whitelist, I mean that if the domain isn’t on the list, you need to enter a password or somehow add the site to the list in order to visit the site.