using System.Collections.Generic;
public static void Main()
var websites = new List<string>
"https://www.google.com",
foreach(var website in websites)
Console.WriteLine(IsValidWebsite(website));
private static bool IsValidWebsite(string website)
if(!website.StartsWith(Uri.UriSchemeHttp))
website = string.Format("{0}://{1}", Uri.UriSchemeHttp, website);
return Uri.TryCreate(website, UriKind.Absolute, out uriResult)
&& (uriResult.Scheme == Uri.UriSchemeHttp || uriResult.Scheme == Uri.UriSchemeHttps);