Block downloads based on file extension