EU CAPTCHA for Django
Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design for building scalable web applications. Protect your Django views and forms from bots and spam with a privacy-first, EU-hosted CAPTCHA that integrates cleanly with Django's form validation pipeline.
Why choose Myra EU CAPTCHA?
Interaction-free user experience
No puzzles, no clicks – invisible bot protection with zero user friction.
Digital sovereignty made in Germany
Fully GDPR-compliant, no cookies, no tracking – developed and hosted in Germany.
Intelligent threat detection
Smart protection trained by more than 100 billion daily Myra CDN signals.
Proven technology
Over 5 billion successfully secured authentication attempts.
How the integration works
1. Create an EU CAPTCHA account
Creating an account is completely free, all you need is a valid email address and you’re ready to go. Choose a plan that covers your needs. The first 3 months are free of charge.
Create an Account2. Install the EU CAPTCHA Django module
Install the EU CAPTCHA module via pip and add it to your INSTALLED_APPS. Configure your sitekey and secret key in settings.py.
View Django module documentation3. Add the widget to your Django templates
Use the EU CAPTCHA template tag or widget in your Django forms and templates to render the invisible verification widget with your sitekey.
View integration guide4. Validate in your view
The EU CAPTCHA module handles token verification automatically when integrated with Django forms. Enable and go live — monitor verifications in the EU CAPTCHA dashboard.
5. The EU CAPTCHA widget will appear on your Django forms.
Frequently Asked Questions
How do I add EU CAPTCHA to a Django form?
Install the EU CAPTCHA Django module via pip and add it to INSTALLED_APPS in settings.py. Configure EU_CAPTCHA_SITEKEY and EU_CAPTCHA_SECRET_KEY. Add the EU CAPTCHA field to your Form or ModelForm class, include the widget in your template using the provided template tag, and the module handles token verification automatically during form validation.
Is there an official EU CAPTCHA Django module?
Yes. EU CAPTCHA provides an official Django module installable via pip. It integrates with Django's form validation system, provides a custom form field and widget, and automatically verifies the CAPTCHA token as part of the standard form.is_valid() flow. It supports Django 3.2 and later.
Does EU CAPTCHA work with Django's class-based views?
Yes. EU CAPTCHA works with Django's class-based views including FormView, CreateView, and UpdateView. Add the EU CAPTCHA field to your form class and the module performs token verification automatically when form_valid is called. No additional view-level code is required if you use the Django form integration.
How do I verify a CAPTCHA token manually in a Django function-based view?
If you prefer manual verification, read request.POST.get('eu-captcha-response') in your view, call the EU CAPTCHA Python client's verify method with your secret key and the token, and return an appropriate error response if verification fails. This approach works with or without the Django form integration module.
Can EU CAPTCHA be used with Django REST Framework?
Yes. For DRF API views, read the eu-captcha-response value from request.data in your APIView or ViewSet. Call the EU CAPTCHA Python client to verify the token and return a Response with HTTP_400_BAD_REQUEST if verification fails. You can also create a custom DRF permission class or serializer validator to encapsulate the CAPTCHA check.
How do I protect Django's login and registration forms with EU CAPTCHA?
For Django's built-in authentication forms, subclass AuthenticationForm and UserCreationForm to add the EU CAPTCHA field. Override the clean method to include the token verification step. Point Django's login and registration views to your custom form classes using the form_class parameter or by overriding the view's get_form_class method.
Is EU CAPTCHA GDPR compliant for Django applications?
Yes. EU CAPTCHA is operated by an EU-based company, is hosted entirely in Germany, and does not rely on US cloud providers or infrastructure subject to US surveillance laws. The service processes only the data necessary to provide and verify the CAPTCHA (such as IP address and technical browser or device information) in line with the requirements of the GDPR. Your organization remains responsible for providing transparent privacy information, selecting an appropriate legal basis, and obtaining any required consent for your specific Django implementation. This information does not constitute legal advice; please consult your legal counsel for an assessment of your individual case.
Ready for a better CAPTCHA?
Experience invisible bot protection with privacy‑first, GDPR‑compliant verification made and hosted in Germany. Try Myra EU CAPTCHA now 3 months for free and secure your web forms without adding friction for your users.
Privacy-first technology
We guarantee zero data transfer to third-country jurisdictions.
Read our privacy policyFast and easy setup
We offer ready-made integrations for many CMS and popular frameworks.
Read our quick start guide