You can't completely ban an ip address from being accessed from your computer without using a firewall or net-blocking (netnanny type crap) software. You can, however, modify the hosts file and associate domain names with a certain ip.
Por ejemplo (for example):
to 'block' forums.anandtech.com, add the following line in the 'C:\<win directory>\hosts' file:
127.0.0.1 forums.anandtech.com
Whenever you try to connect to forums.anandtech.com, it'll think it's ip is 127.0.0.1 (your own computer) and assuming you're not running a web server on your computer, you'll get a 'cannot find server' error.
Summarized: To ban a website from your computer, add the following to your \windows\hosts file: 127.0.0.1 xxx.myhost.com, where xxx.myhost.com is the server you want to block.
Note: Browser will need to be restarted for this to take effect