Checking internet connection for different urls