Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Sets up, repairs, or migrates Cloudflare Turnstile bot verification in existing frontends and backends, including server-side Siteverify.
48% 100%+52 ptsof test cases passed
Passed 23 of 23 test cases with the skill, and 11 of 23 without it.
This test ran on v2. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
For Astro projects. The widget renders in a page; siteverify lives in an Astro Action, an API route, or a Pages Function. Astro frontmatter reads the sitekey from env at build time; the secret stays server-only.
---
const SITEKEY = import.meta.env.PUBLIC_TURNSTILE_SITEKEY;
---
<html>
<head>
<script
src="https://challenges.cloudflare.com/turnstile/v0/api.js"
async
defer
></script>
</head>
<body>
<form action="/api/signup" method="POST">
<input name="email" type="email" required />
<div
class="cf-turnstile"
data-sitekey={SITEKEY}
data-action="signup"
/>
<button type="submit">Sign up</button>
</form>
</body>
</html>
In your .env:
PUBLIC_TURNSTILE_SITEKEY=YOUR_SITEKEY
TURNSTILE_SECRET=YOUR_SECRET
The PUBLIC_ prefix is mandatory for client-exposed variables in Astro. The secret has no prefix; it stays server-only.
Next to this one in the catalogue, plus more from the same author.