Securing your app
Your application faces security threats like credential stuffing, brute force attacks, and cross-site scripting. Clerk provides built-in protections and configurable features to defend against them.
This page maps common threats to the Clerk features that protect your application, so you can quickly find the right configuration for your security needs.
Attack protection
Clerk provides several features to protect your application from common authentication attacks. These features are configurable in the Clerk Dashboard.
Web security best practices
Clerk provides recommended protections and configurable features to address common web security concerns.
Additional security features
Beyond attack-specific protections, Clerk provides features that strengthen your overall security posture:
- Reverification (step-up authentication) — Require users to re-verify their identity before performing sensitive actions like changing their password or accessing billing settings.
- Session options — Configure session lifetimes, inactivity timeouts, and single-session mode to control how long sessions stay active.
- Geo blocking — Restrict access to your application based on geographic location.
Next steps
Enable Client Trust
Protect your users from credential stuffing attacks with automatic second-factor verification on new devices.
Configure password protection
Enforce password strength requirements and check passwords against known data breaches.
Set up bot protection
Prevent automated bots from creating fake accounts in your application.
Review session options
Configure session lifetimes and timeouts to balance security with user experience.
Feedback
Last updated on