Skip to content

Instantly share code, notes, and snippets.

@almog-barel
Created January 29, 2026 11:05
Show Gist options
  • Select an option

  • Save almog-barel/daa2d3a88bcc500a4d465783663bf134 to your computer and use it in GitHub Desktop.

Select an option

Save almog-barel/daa2d3a88bcc500a4d465783663bf134 to your computer and use it in GitHub Desktop.
TLS checker
using System.Text.RegularExpressions;
var client = new HttpClient();
var response = await client.GetStringAsync("https://www.cloudflare.com/cdn-cgi/trace");
var tls = Regex.Match(response, @"(?<=tls=).*").Value;
Console.WriteLine(tls);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment