adding changes for multi white listed urls and also regex match