Form with reCAPTCHA or hCaptcha protection

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

Development of Form with reCAPTCHA/hCaptcha Protection

CAPTCHA protection prevents spam submissions, bot registrations and password brute force. Choice between Google reCAPTCHA and hCaptcha depends on privacy requirements and audience geography.

reCAPTCHA v3 (recommended)

v3 works invisibly: analyzes user behavior and returns score from 0.0 to 1.0 without showing challenges.

<script src="https://www.google.com/recaptcha/api.js?render=SITE_KEY"></script>
async function submitForm(data: FormData) {
  const token = await grecaptcha.execute('SITE_KEY', { action: 'submit_form' });

  await fetch('/api/contact', {
    method: 'POST',
    body: JSON.stringify({ ...data, recaptcha_token: token }),
  });
}
// Server-side verification
class RecaptchaService
{
    public function verify(string $token, string $expectedAction = 'submit_form'): bool
    {
        $resp = Http::post('https://www.google.com/recaptcha/api/siteverify', [
            'secret'   => config('services.recaptcha.secret'),
            'response' => $token,
            'remoteip' => request()->ip(),
        ]);

        $result = $resp->json();

        return $result['success'] === true
            && $result['action'] === $expectedAction
            && $result['score'] >= 0.5;  // threshold: 0.0 = bot, 1.0 = human
    }
}

hCaptcha (alternative)

hCaptcha compatible with reCAPTCHA v2 API, but privacy-focused. Preferred if audience in regions with Google restrictions:

<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
<div class="h-captcha" data-sitekey="SITE_KEY"></div>
$resp = Http::post('https://hcaptcha.com/siteverify', [
    'secret'   => config('services.hcaptcha.secret'),
    'response' => $request->h_captcha_response,
]);

$valid = $resp->json('success') === true;

Cloudflare Turnstile (least intrusive)

Most unobtrusive protection — just checkbox or fully invisible:

<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<div class="cf-turnstile" data-sitekey="SITE_KEY"></div>

Verification goes to https://challenges.cloudflare.com/turnstile/v0/siteverify.

Implementation time: 1 business day.