Checking if the set connection is valid

crypto.news needs to ascertain the protection of your connection before continuing.