CMS Platforms
Squarespace Installation
Inject UCAPTCHA into your Squarespace site using the Code Injection feature in Advanced settings.
Step 1 â Get your site key
Log in to your UCAPTCHA dashboard, go to My Sites, and copy the site key for your site.
Step 2 â Open Code Injection
- Log in to your Squarespace account and open your site's editor
- In the left sidebar, go to Settings â Advanced â Code Injection
âšī¸ Code Injection is available on Squarespace's Business plan and above. It is not available on the Personal plan.
Step 3 â Add the script to the Header
In the Header field, paste the following. Replace YOUR_SITE_KEY with your actual key.
<script
src="https://www.ucaptcha.site/captcha-widget.js"
data-site-key="YOUR_SITE_KEY"
defer>
</script>Click Save when done.
Step 4 â Verify it's working
Navigate to any page on your Squarespace site that contains a contact form. The UCAPTCHA checkbox should appear automatically inside the form.
đĄ Squarespace's built-in Contact Block and Newsletter Block forms are both supported. UCAPTCHA will detect and protect them automatically.
Page-specific installation (optional)
To add UCAPTCHA only to a specific page rather than site-wide, use a Code Block on that page:
- Open the page you want to protect in the Squarespace editor
- Add a new block and choose Code
- Paste the script tag into the code block
- Save and publish the page
âšī¸ When using a Code Block, set the display mode to HTML (not Markdown) in the block settings.