pre block and security filter