Originally posted by Kristoff:
Why not use ipfw?
Mr. Hammer, meet Mr. Nail.
Using the firewall to block a specific site? Methinks you have a hammer and think everything LOOKS like a nail ;-)
Anyway you can use the hosts file (it's located in /etc/hosts) to do this... just have an entry like this:
127.0.0.1 foo.com bar.foo.com
where the latter entry is the domain name of the site you want to block. Lookups for that site won't use DNS, so it won't properly resolve.
An alternative of course is to use a proxy server to do a real job of blocking the sites. That's more advanced, but more flexible too.