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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-examples-on-tls-workflow-guide.md | A 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.text | A 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
