Weebly Tricks #84 — ClassyCountdown Timer
Add a clean countdown timer to your Weebly site, created by Marius Stanciu.
Learn how to customize and modify your Weebly site with new effects, plugins, and widgets.
Welcome to My Weebly Tricks, a resource for Weebly site owners who want to go beyond the basics. Here you'll find step-by-step guides on adding image effects, slideshows, navigation scripts, text animations, countdown timers, and more — all tailored for the Weebly platform.
Contact forms are easy to add to a Weebly site, but they are also an easy target for spam bots. Google reCAPTCHA can challenge or score each submission before it reaches your inbox. This is useful for public forms receiving enquiries from customers in Melbourne, Brisbane or overseas.
Adding custom protection is more than pasting a checkbox into a page. reCAPTCHA uses a public site key in the browser and a private secret key on a server. The server asks Google to verify the response before accepting the message. A frontend-only checkbox can be removed by a bot and does not provide this protection.
The native Weebly Form element does not expose a supported field for a third-party challenge or a dependable hook for validating one. If your editor already includes Weebly's own spam protection, use it when it meets your needs. A genuinely custom challenge normally requires an embedded HTML form connected to a verification endpoint you control.
The method below focuses on reCAPTCHA v3 for low-friction scoring, then shows where the visible v2 Checkbox fits. It also covers privacy, Australian expectations and testing so genuine enquiries are not blocked.
Start in Site Builder and open the page containing your form. Review the form settings and preview the live page, because a hidden spam field or Weebly's built-in protection may already be doing some of the work. Keep the native form in place until the replacement has passed a genuine test.
The important distinction is between a visible control and working protection. Pasting a reCAPTCHA element beside a native Weebly form may make a checkbox appear, but the native form will not normally send the generated token to a server for validation. A script can also be blocked by Weebly's form structure or by script restrictions on your plan.
Choose one path deliberately: keep the native form with Weebly's built-in spam controls; build a custom HTML form with your own verification endpoint; or use a hosted form service that supports reCAPTCHA. Do not mix all three, as each extra submission route can become a way for junk messages to bypass your chosen checks.
reCAPTCHA v3 is usually the better fit for a modern Weebly contact form because it returns a score without showing a puzzle on every visit. reCAPTCHA v2 Checkbox is useful when you want an obvious challenge, while v2 invisible scoring remains a separate option. Choose one version for the initial build so keys, actions and server rules stay consistent.
In the Google reCAPTCHA admin area, register the domain that visitors actually use, including any secure subdomain or custom domain. You will receive a site key and a secret key. The site key can appear in HTML; the secret belongs in an environment variable or private server configuration. Never place the secret in Weebly, a browser script, a public repository or a form field. For broader independent Weebly customisation ideas, Joe Giardullo offers a useful reference before you alter page code.
Decide what the endpoint must do after verification. It should validate the token, apply a score rule for v3, reject expired or reused responses, and only then forward the name, email and message to an email service or database. A Cloudflare Worker, Netlify or Vercel function, or a private Google Apps Script endpoint can fill this role. Choose a service your team can maintain and set request limits so the endpoint is not abused as a mail relay.
Work on a duplicate or draft page first. Use Weebly's Embed Code element to add a form with an identifier such as secure-form, then set its action to your verification endpoint. Include the fields your Australian customers expect, and retain clear labels, required attributes, keyboard focus and plain-language instructions. If a mobile visitor abandons the form, their message should not disappear merely because the verification service is slow.
For reCAPTCHA v3, request a token when the visitor submits rather than when the page loads. Google tokens are short-lived, so a token generated on page view may expire before use. This minimal pattern shows where the token belongs:
<input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response">
<script src="https://www.google.com/recaptcha/api.js?render=YOUR_SITE_KEY"></script>
<script>
document.getElementById("secure-form").addEventListener("submit", function (event) {
event.preventDefault();
const form = event.currentTarget;
grecaptcha.ready(function () {
grecaptcha.execute("YOUR_SITE_KEY", {action: "weebly_contact"})
.then(function (token) {
document.getElementById("g-recaptcha-response").value = token;
HTMLFormElement.prototype.submit.call(form);
});
});
});
</script>
The endpoint must send the secret key, token and, when available, the visitor's IP address to Google's siteverify service. Check that the result is successful. For v3, also confirm that the action matches weebly_contact and apply a score threshold; a threshold near 0.5 is a starting point, not a universal rule. Only after those checks should the endpoint send the email or save the row. Sanitise every field, rate-limit repeat requests and avoid logging full tokens.
For v2 Checkbox, load Google's standard API script and place a g-recaptcha div with the data-sitekey attribute inside the form. The browser then supplies g-recaptcha-response with the submission. On the server, check the verification result and the returned hostname. Show a plain error if Google is unavailable, preserve the visitor's entries and let them retry. Rate limits, a honeypot and moderation remain useful alongside the challenge.
Australian privacy duties depend on your organisation and the information you collect. If the Privacy Act 1988 and Australian Privacy Principles apply, explain the purpose of the data, your identity, retention and contact details, and any overseas transfer to Google. reCAPTCHA may send device, network and interaction data to Google, so name that service rather than describing the form only as secure. Update the Privacy Policy before enabling the third-party challenge and consult Office of the Australian Information Commissioner guidance or a qualified adviser if your operation is covered.
The Spam Act 2003 also matters if enquiries become a marketing list. Commercial electronic messages generally need consent, clear sender identification and a working unsubscribe route. Ask for separate consent instead of hiding a mailing-list tick beside a contact request. ACSC guidance is a useful reminder not to build payment, password or identity-document requests into a basic contact form, and requests that change banking details deserve independent verification.
Operationally, store timestamps in UTC and display them in the relevant Australian time zone. Sydney and Melbourne observe daylight saving, Brisbane uses AEST and Perth is two hours behind Brisbane, so an automatic receipt can otherwise confuse customers. Australian sole traders and companies may also want their legal business name and ABN or ACN visible on the form or footer. These details build trust in a local market where copied contact information and unclear trading identities are common concerns.
Test from several devices and browsers, including a slow mobile connection. Confirm that the form blocks a missing token, accepts a valid submission, rejects a reused token and returns a helpful message when the endpoint fails. Check keyboard navigation, screen-reader labels and visible focus. For v2, try the audio challenge as well. Keep a small log of verification outcomes and delivery status without recording message content or tokens.
Then review the following before each launch or major redesign:
www and non-www versions where applicable.Analytics can reveal whether the form receives genuine traffic, but keep advertising tracking separate from security verification. If campaigns need Meta tracking, the Facebook Pixel guide explains the Weebly tag, while the same privacy and consent choices should apply to campaign data. Avoid sending form contents or reCAPTCHA tokens to advertising platforms without a clear purpose.
Open a draft Weebly page today, build the protected form and send one genuine test submission from a phone. Confirm the server-side result and delivered email, publish the page, then review the first live responses during Australian business hours.
Add a clean countdown timer to your Weebly site, created by Marius Stanciu.
A comparison of free and paid email accounts and the advantages of using a domain-based custom email.
Instructions on setting a free custom email address for your website within Weebly.
Configure your Weebly RSS feed so visitors can subscribe and receive email updates.
Details on a promotional offer for two months of free email hosting from Namecheap.
Subscribe for regular email updates and get access to new Weebly tips and tutorials.