Here is an SO question that is close to yours:
Best way to check if a site is alive using C # application
Basically, you can check the status of a website using the following code:
WebRequest request = WebRequest.Create("http://localhost/myContentSite/test.aspx");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
if (response == null || response.StatusCode != HttpStatusCode.OK)
{
Console.WriteLine("You have a problem");
}
, -, . , . . , , - ( ), , . , . , - , , , " ". , .. , , .