TrustCaptcha - Bot protection

JavaScript CAPTCHA. Eliminate bots and spam.

TrustCaptcha reliably shields your JavaScript applications against automated attacks and spam in minutes with the pre-built CAPTCHA-for-JavaScript. TrustCaptcha prevents prospects from bouncing by totally eliminating bothersome visual puzzles or challenges. TrustCaptcha secures you against privacy breaches and fines – rely on the European CAPTCHA option for JavaScript with an explicit focus on data protection and GDPR adherence.

Contact Sales
JavaScript Logo
GDPR compliant
EU hosted

Trusted by companies, organisations and governments.

shared.components.public.referenceSection.oiershared.components.public.referenceSection.trautofficeshared.components.public.referenceSection.itsmydatashared.components.public.referenceSection.mannershared.components.public.referenceSection.myilrshared.components.public.referenceSection.touridatshared.components.public.referenceSection.weShareEngergyshared.components.public.referenceSection.axisshared.components.public.referenceSection.academyshared.components.public.referenceSection.kusshared.components.public.referenceSection.oiershared.components.public.referenceSection.trautofficeshared.components.public.referenceSection.itsmydatashared.components.public.referenceSection.mannershared.components.public.referenceSection.myilrshared.components.public.referenceSection.touridatshared.components.public.referenceSection.weShareEngergyshared.components.public.referenceSection.axisshared.components.public.referenceSection.academyshared.components.public.referenceSection.kus

Why TrustCaptcha

TrustCaptcha saves you money and increases your conversion

Save money! Eliminate botsProtect your website from bot attacks and spam. Save yourself the resulting follow-up costs for higher server capacity, support staff, moderation teams and software developers. Learn how TrustCaptcha eliminate bots
Avoid fines! Be GDPR compliantDon't worry about the legal situation, bureaucracy and the threat of fines. Use TrustCaptcha-for-JavaScript as a data protection-friendly and GDPR-compliant CAPTCHA alternative. More about the GDPR-compliance of TrustCaptcha
Don't lose customers! Increase conversionDon't make it difficult for your users to use your website with annoying image puzzles or tasks. Our CAPTCHA-for-JavaScript ensures maximum conversion by making the website accessible to everyone with one click. Learn how TrustCaptcha makes your website accessible
Contact Sales

Integrate TrustCaptcha

Integrate TrustCaptcha in JavaScript now! Simply follow these steps

Integrate TrustCaptcha with JavaScript quickly and easily into your website, application or platform in just a few steps and effectively protect your online presence and services from bot abuse.

  • 1 – Sign in or sign up

    The first thing you need to do is sign in to your Trustcomponent account. If you do not yet have a Trustcomponent account, you can register with us quickly and easily in just a few steps. After that, go to your dashboard. Here you will see all existing CAPTCHAs and can create new CAPTCHAs.
    TrustCaptcha Signup PageDashboard Page
  • 2 – Choose existing CAPTCHA or create a new CAPTCHA

    If you already have a CAPTCHA that you want to use, skip this step. If you don't have a CAPTCHA yet, create a new CAPTCHA now.Create a new CAPTCHADuring the creation process, select the “TrustCaptcha” product category and choose your preferred pricing plan. If you are not yet sure which pricing plan to choose, no problem! The plan can be extended at any time. Then decide whether you want to start with the 30-day trial version or go straight to a paid subscription. If you want to start directly with a paid CAPTCHA, all you have to do is add your billing details and optionally a payment method and you're ready to go.30-day trial periodIf you opt for the 30-day trial period, you can test CAPTCHA for 30 days risk-free. At the end of the 30-day trial period, CAPTCHA locks itself. During the 30-day trial period or up to 30 days after the end of the trial period, you can unsubscribe from CAPTCHA at any time for a fee or delete it with immediate effect. If you neither subscribe to the CAPTCHA for a fee nor delete it within 30 days of the end of the free trial period, it will be deleted automatically.Non-Commercial PlanIn addition to our standard plans, we also offer a permanently free “Non Commercial“ plan with 1 website and up to 500 free verifications for non-commercial websites and projects.
    Create CAPTCHA pageCAPTCHA overview page
  • 3 – Add your websites and check your credentials

    On the dashboard of your CAPTCHA you will find all the important information, statistics and setting options. Here you will also find your site-key, the secret-key and, if available, the license-key. You will need these later on when integrating your CAPTCHA.Add your websitesYour CAPTCHA may only be accessed by websites that you explicitly authorise. To allow websites to access the CAPTCHA, enter all the websites on which you want to integrate the CAPTCHA in the settings.
    CAPTCHA credentials pageCAPTCHA settings page
  • 4 – Solve the CAPTCHA in your frontend

    Integrate the CAPTCHA widget into your website or app. You can find detailed instructions for the frontend integration in our documentation. The CAPTCHA widget will then be displayed on your website or app.
    trustcaptcha logo
    Basic steps for JavaScriptThe basic steps for your JavaScript integration are as follows. For detailed instructions, please read our documentation.Install Dependency
    <script type="module" src="https://cdn.trustcomponent.com/trustcaptcha/2.0.x/trustcaptcha.esm.min.js"></script>
    
    Page
    <form>
      <!-- your input fields -->
      <trustcaptcha-component
          sitekey="<your_site_key>"
      ></trustcaptcha-component>
       <!-- further input fields / submit button -->
    </form>
    
    <script>
      const trustcaptchaComponent = document.getElementsByTagName('trustcaptcha-component')[0];
      trustcaptchaComponent.addEventListener('captchaSolved', (event) => {
        console.log('Verification token:', event.detail); <!-- handle success -->
      });
      trustcaptchaComponent.addEventListener('captchaFailed', (event) => {
        console.error(event.detail); <!-- handle error -->
      });
    </script>
    
    Need more information about the JavaScript integration?Here are a few more ways to familiarize yourself further with the integration.Other frontend technology instead of JavaScript?If you do not want to use JavaScript or have several websites or applications, you can select a different framework or platform here. If there is no pre-built integration from us for your preferred frontend technology, your software developers can integrate the CAPTCHA themselves using our documentation or ask our support-team for a pre-built integration solution.
    Android Logo
    Angular Logo
    CraftCMS Logo
    Flutter Logo
    iOS Logo
    JavaScript Logo
    Joomla Logo
    Keycloak Logo
    React JS Logo
    React Native Logo
    Vue Logo
    WordPress Logo
  • 5 – Validate the CAPTCHA result in your backend

    When the CAPTCHA has finished, take the verification token and send it to your backend. Then retrieve the verification result from our servers and determine your next steps. You can find detailed information on backend integration in our documentation.Prebuild backend integrationsYou can use one of our pre-built integrations to integrate the CAPTCHA validation process into your backend service. If there is no pre-built integration from us for your preferred backend technology, your software developers can integrate the CAPTCHA themselves using our documentation or ask our support-team for a pre-built integration solution.
    .Net Logo
    Go Logo
    Groovy Logo
    Java Logo
    Spring Logo
    Kotlin Logo
    NodeJS Logo
    PHP Logo
    Python Logo
    Ruby Logo
    Rust Logo
    Scala Logo
  • 6 – Congratulations 🎉

    You are now protected by TrustCaptcha - congratulations!
    trustcaptcha logo

Frequently Asked Questions

Do you need more information about the Angular integration?

Frequently Asked Questions

What is a JavaScript CAPTCHA?
A JavaScript CAPTCHA is a lightweight script that runs in the browser to tell real visitors from automated bots before a form is submitted. It does this by issuing a brief cryptographic challenge and validating the response without needing a page reload. Modern solutions like TrustCaptcha combine adaptive proof-of-work with an AI-driven bot-score so the test stays invisible to humans but punishingly expensive for scripts.
What is the best JavaScript CAPTCHA?
There’s no one-size-fits-all winner, but experts advise using multiple signals instead of relying on proof-of-work alone. TrustCaptcha layers dynamic proof-of-work, an AI bot-score and granular security rules, achieving up to a 99.9 % bot-detection rate while remaining fully GDPR-compliant on EU servers. Because the widget autostarts and resolves in seconds without image puzzles, it outperforms puzzle-based and single-layer PoW CAPTCHAs on speed and conversion.
How does a JavaScript CAPTCHA work?
When a user focuses a protected field, the CAPTCHA script quietly requests a cryptographic puzzle that the browser solves in the background, spending only milliseconds of CPU. The server checks the solution, evaluates behavioural and device signals, and returns a bot-probability score. If the score is clean, the form proceeds; otherwise TrustCaptcha can raise difficulty or block the request—no traffic-light clicks required.
Do I need a JavaScript CAPTCHA?
If your forms attract spam, credential stuffing or scraping, a modern JavaScript CAPTCHA remains one of the most cost-effective defences. Bot operators now deploy AI that mimics real clicks, so rate-limits alone are risky. A multi-layer CAPTCHA like TrustCaptcha raises the attacker’s compute cost while keeping genuine users friction-free, protecting sign-ups, checkout pages and APIs.
Is a JavaScript CAPTCHA GDPR-compliant?
Compliance hinges on where verification data is processed and what personal data is collected. TrustCaptcha processes all data inside the EU, sets no cookies and offers an online Data-Processing Agreement, so websites stay within GDPR and Schrems II requirements. By contrast, CAPTCHAs that stream behavioural fingerprints to U.S. servers may need explicit consent and still face regulatory scrutiny.
Can I customise the look of TrustCaptcha?
Yes—every visual element can be themed, from colours and corner radius to light/dark mode, and you can even hide the branding or run the widget invisibly. Over 35 interface languages, custom privacy links and auto-detection make the widget feel native to any audience. These options help maintain brand consistency and boost conversion without extra CSS overrides.
How does TrustCaptcha detect bots more accurately than proof-of-work-only solutions?
Pure proof-of-work only slows bots temporarily, whereas TrustCaptcha adds an AI bot-score and configurable security thresholds on top. Internal benchmarks show a 99.9 % detection rate and a five-fold security improvement compared with proof-of-work alone. That layered approach frustrates malicious automation while letting genuine visitors pass without puzzles, improving completion rates.

Protect your JavaScript application with TrustCaptcha in just a few steps!

Try TrustCaptcha free of charge
No card required
Contact Sales