System.Net.WebRequest reqGoogle = System.Net.WebRequest.Create("http://www.google.com/webmasters/tools/ping?sitemap=" + HttpUtility.UrlEncode("http://www.shree/SiteMap/'" + PortalName + "'/sitemap.xml"));
reqGoogle.GetResponse();
Code work fine when google is not blocked.For some region my administrator block the goole.After blocking google code gives an error. How to check the site first if it is blocked or not.plz help.
like this(?):