Use a whitelist of file extensions.
Update file with header text.