Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Arcjet security #187

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

davidmytton
Copy link

Adds Arcjet to add bot detection and WAF to key endpoints:

  • For the website, bot detection and the Arcjet Shield WAF are both configured in apps/web/middleware.ts to block scrapers and other bots, but still allow search engines and preview link generators. This will run on every request by default, except for static assets.
  • For the app, there is a central Arcjet client configured at apps/app/lib/arcjet.ts which includes the Arcjet Shield WAF rules. This client is extended in the authenticated route layout in apps/app/app/(authenticated)/layout.tsx with bot detection to block all bots except preview link generators. This will run just on authenticated routes. Clerk includes bot detection and rate limiting in their login route handlers by default.

I've also added a "Security" page to the docs.

Copy link

vercel bot commented Nov 5, 2024

@davidmytton is attempting to deploy a commit to the Hayden Bleasel Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Nov 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-forge ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 10:44pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants