#3

Add Vercel BotID protection

Openjeremyphilemonwants to merge intofrom

Summary

  • Adds Vercel BotID Edge Middleware to gate /api/generate — bots are blocked with 403 before reaching the Flask function
  • Adds vercel.json with BotID proxy rewrites for client-side challenge scripts
  • Adds botid Node.js dependency for the middleware runtime

Note

Any frontend consuming this API needs to load the BotID client-side challenge (initBotId() from botid/client/core) targeting { path: '/api/generate', method: 'GET' } — without it, requests will be classified as bots.

Post-merge

  • Enable BotID Deep Analysis in the Vercel dashboard Firewall tab if desired

Activity

3
vercel[bot]6mo ago

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
ai-sdk-flask ReadyPreview, CommentApr 19, 2026 1:51am
ai-sdk-flask-9 ReadyPreview, CommentApr 19, 2026 1:51am
socket-security[bot]6mo ago

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
npm/​botid@​1.5.11

View full report