Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Block on TLS

An implementation example of Cloudflare Worker middleware that inspects the TLS version of an incoming request and rejects connections using versions older than TLSv1.2.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Block on TLS

An implementation example of Cloudflare Worker middleware that inspects the TLS version of an incoming request and rejects connections using versions older than TLSv1.2.

When To Use

Use when you need to implement a security policy that prevents clients from connecting to your application using outdated TLS protocols.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-on-tls-workflow-guide.mdA Cloudflare Workers implementation using the Hono framework to inspect incoming request TLS versions and block connections below TLSv1.2.Questions about a Cloudflare Workers implementation using the Hono framework to inspect incoming request TLS versions and block conne...
examples/workers-examples-on-tls-cloudflare-workers-on-tls.textA Cloudflare Worker script that inspects the request TLS version and returns a 403 response if the version is below TLS 1.2.Exact payloads, commands, or snippets shown in A Cloudflare Worker script that inspects the request TLS version and returns a 403 response if the version is below T...
examples/workers-examples-on-tls-cloudflare-workers-on-tls-2.textA Cloudflare Worker script that inspects the request TLS version and returns a 403 response if the version is below TLS 1.2.Exact payloads, commands, or snippets shown in A Cloudflare Worker script that inspects the request TLS version and returns a 403 response if the version is below T...
examples/workers-examples-on-tls-cloudflare-workers-hono-on-tls-version.textA Hono middleware implementation for Cloudflare Workers that restricts incoming requests based on their TLS version.Exact payloads, commands, or snippets shown in A Hono middleware implementation for Cloudflare Workers that restricts incoming requests based on their TLS version.
examples/workers-examples-on-tls-cloudflare-workers-python-on-tls-version.textA Python Cloudflare Worker script that inspects the request TLS version and returns a 403 status if the version is below TLSv1.2.Exact payloads, commands, or snippets shown in A Python Cloudflare Worker script that inspects the request TLS version and returns a 403 status if the version is be...

What This Skill Covers

  • Inspects the incoming request's TLS version and blocks if under TLSv1.2.
  • Main sections: Tags.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/examples/block-on-tls