@@ -28,7 +28,7 @@ Client-side verification alone leaves major security vulnerabilities.
2828
2929## Siteverify API overview
3030
31- ``` txt title="Endpoint"
31+ ``` shell title="Endpoint"
3232POST https://challenges.cloudflare.com/turnstile/v0/siteverify
3333```
3434
@@ -647,22 +647,22 @@ if (result.success) {
647647
648648### Security
649649
650- - Store secret keys securely. Use environment variables or secure key management.
651- - Validate the token on every request. Never trust client-side validation alone.
652- - Check additional fields. Validate the action and hostname when specified.
653- - Monitor for abuse. Log failed validations and unusual patterns.
654- - Use HTTPS. Always validate over secure connections.
650+ - ** Store secret keys securely** : Use environment variables or secure key management.
651+ - ** Validate the token on every request** : Never trust client-side validation alone.
652+ - ** Check additional fields** : Validate the action and hostname when specified.
653+ - ** Monitor for abuse** : Log failed validations and unusual patterns.
654+ - ** Use HTTPS** : Always validate over secure connections.
655655
656656### Performance
657657
658- - Set reasonable timeouts. Do not wait indefinitely for Siteverify responses.
659- - Implement retry logic.
660- - Cache validation results for the same token, if needed for your flow.
661- - Monitor API latency. Track Siteverify response times.
658+ - ** Set reasonable timeouts** : Do not wait indefinitely for Siteverify responses.
659+ - Implement retry logic** : Handle temporary network issues .
660+ - ** Cache validation results ** : Cache validation results for the same token, if needed for your flow.
661+ - ** Monitor API latency** : Track Siteverify response times.
662662
663663### Error handling
664664
665- - Have fallback behavior for API failures.
666- - Do not expose internal error details to users.
667- - Properly log errors for debugging without exposing secrets.
668- - Rate limit. Protect against validation flooding.
665+ - ** Degreadation ** : Have fallback behavior for API failures.
666+ - ** User-friendly messaging ** : Do not expose internal error details to users.
667+ - ** Proper logging ** : Log errors for debugging without exposing secrets.
668+ - ** Rate limit** : Protect against validation flooding.
0 commit comments