Add filter to protect pages