I use Ubuntu 13.10. I tried to used OpenDNS to restrict some websites. Unfortunately, I couldn't do that. I use AirStream 1200 USB modem to access WiMax internet. OpenDNS setting didn't work for me at all. Any alternatives to OpenDNS or any methods to secure my web browsing. I want solution that can't be easily hacked.
I advise you to install squid. It is a highly customisable web cache providing many configuration possibilities to protect of most of the attack web servers. I'm using it to protect my network of add web servers, spying web servers, any web servers without a DNS name, and many other sorts of attacks.
I'm testing many a priori filtering, and most of them are successfull: when checking afterward the blocked web server I often discover a well of malware.
A simple way would be to add the site to the /etc/hosts file but instead of adding its IP address you use any other IP. For example 127.0.0.1. This will always resolve the site name to this IP address. I hope I did understand your question.