title: How can I find the mimetype of a file without extension that is sent to me inside a zip file?
body: <p>I have a simple problem: in a system I'm developing the user can send us zipfiles and I need to filter the content of it. (block applications and malicious scripts)</p>
  
  <p>To block the inner files by extension is easy, but files without extension are very common and the extension isn't the most reliable source about the content of the file.</p>
  
  <p>I've already tried to use python magic, but it requires some packages that my server doesn't support and the server isn't going to help me.
  Oh! I don't have the option of changing the system to another server. So, there's no python magic for me in this case.</p>
  
  <p>Does anyone have an idea of how to check the file type by its header?</p>