On my mac, I oftentimes use /etc/hosts to rewrite the DNS of a website. Usually to block myself from using it (hello facebook!). This works for all the major browsers. However in firefox, you're using some super smart caching (because flushing the dns cache didn't help!) so I cannot prevent myself from accessing the websites.