GameCaptcha/Games/Connect 4
🔴

LIVE DEMO

Connect 4

Get 4 in a row to pass

Security CheckBEAT THE BOT TO VERIFY
YOU
VS
BOT

Tap a column to start

GET 4 IN A ROW TO WIN

Verify you are human by beating the bot.

↑ This is exactly what your users will see

15s

Avg solve time

Easy

Difficulty

Pay what you want

Price

About this game

Drop pieces to connect four in a row — horizontally, vertically, or diagonally. Beat the bot to verify.

Bot-proofMobile friendlyNo cookiesGDPR safeGeneral signups

PAY WHAT YOU WANT

Your price

All 7 games

Full pack available

Pay what you want →

  • Lifetime access
  • Unlimited domains
  • API + embed code
  • Dashboard & site key
GET ALL 7 GAMES — PAY WHAT YOU WANT →

Embed code

index.html
<!-- 1. Add the script -->
<script src="https://didyu.app/captchagames/embed.js" async></script>

<!-- 2. Drop in the widget -->
<div
  id="gc-widget"
  data-game="connect4"
  data-site-key="YOUR_SITE_KEY"
></div>

<!-- 3. Verify on your server -->
<script>
  document.getElementById('gc-widget').addEventListener('gc:pass', async (e) => {
    const res = await fetch('/api/verify-captcha', {
      method: 'POST',
      body: JSON.stringify({ token: e.detail.token }),
    });
    const { success } = await res.json();
    if (success) submitForm();
  });
</script>

Server verification

server.js
// Server-side token verification
const res = await fetch('https://didyu.app/captchagames/api/verify', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer YOUR_API_KEY',
  },
  body: JSON.stringify({
    token: req.body.token,
    siteKey: 'gc_connect4_xxxx',
  }),
});

const { success, gameId } = await res.json();
// success === true means a real human passed the Connect 4 challenge