can anyone do me a bit cgi code that ping a server and if it gets a response it redirectrs the user to this poage and if not it send the user to that page.

thanks for the help