Something like this is the easiest way
Javascript code:
CheckWebsiteStatus ( 'google.ca' );
function CheckWebsiteStatus ( sUrl ) {
var xmlhttp = new ActiveXObject( 'Microsoft.XMLHTTP' );
xmlhttp.open ( 'GET', 'http://downforeveryoneorjustme.com/'+sUrl+'&'+new Date ( ).getTime ( ), true );
xmlhttp.onreadystatechange=function ( ) {
if ( xmlhttp.readyState === 4 && xmlhttp.status === 200 ) {
var resText = xmlhttp.responseText.toLowerCase();
if ( resText.substr ( 0 , 3 ) === 'huh' ) {
Debug.Trace ( 'Website does not exist on the interwho' );
} else if ( resText.substr ( 0 , 13 ) === 'it\'s just you' ) {
Debug.Trace ( 'Website is up' );
} else if ( resText.substr ( 0 , 17 ) === 'it\'s not just you' ) {
Debug.Trace ( 'Website is down' );
}
}
}
xmlhttp.send ( '' );
}
And there is a much better way of doing this I am just too lazy to do it.