Refuse to open other filetypes than permited