Add protection for file headers