How to automatise the whitelisting process: