It runs a local DNS server and a local http host.
You make a DNS query to badsite.com, your local DNS responds with your local http host and you load a pixel image instead of whatever it should have been.
You make a DNS query to badsite.com, your local DNS responds with your local http host and you load a pixel image instead of whatever it should have been.
I actually use pfblockerng, it does the same thing without the pretty UI.