I wrote some notes on using 'ban' in Varnish 3. Read at GitHub for better legibility.