Using the wpcom_vip_is_valid_domain() function to check the embeds.
Using the wpcom_vip_is_valid_domain() to whitelist the valid domains.