title: How can I protect myself from a zip bomb?
body: <p>I just read about <a href="http://en.wikipedia.org/wiki/Zip_bomb" rel="noreferrer">zip bombs</a>, i.e. zip files that contain very large amount of highly compressible data (00000000000000000...).</p>
  
  <p>When opened they fill the server's disk.</p>
  
  <p>How can I detect a zip file is a zip bomb <strong>before</strong> unzipping it?</p>
  
  <p><strong>UPDATE</strong> Can you tell me how is this done in Python or Java?</p>