<input type="url" id="url" class="form-control image_url">
I need to allow users add only links from popular drive sites like google drive or one drive
    $url_allowed = array("https://drive.google.com/", "https://1drv.ms/"); //Add Allowed Website list Here
    if(!$url_allowed){
        echo 'invalid link';
        return;
    }
What is the right method to do that ?
 
     
    