changing default settings in alerts

How to change default settings in alerts from ‘allow’ to ‘block’ for every new application that shows up?