π
LIVE DEMO
Fruit Sorter
Sort 5 fruits into the correct baskets
Security CheckFRUIT SORTER
Get readyβ¦
Tap the correct basket Β· 6 in a row to pass
β This is exactly what your users will see
15s
Avg solve time
Medium
Difficulty
Pay what you want
Price
About this game
Drag each falling fruit into its matching basket. Miss one and the round resets.
Bot-proofMobile friendlyNo cookiesGDPR safeE-commerce checkouts
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
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="fruitsorter"
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_fruitsorter_xxxx',
}),
});
const { success, gameId } = await res.json();
// success === true means a real human passed the Fruit Sorter challenge