There's a great free Safari extension called WasteNoTime which does something similar without a proxy, and also has the added benefit of tracking the time you spent daily, weekly, or monthly across all sites (including non-blocked ones) so you can see which ones you need to block.