Got hit by a wave of bot attacks from China this week, and I didnโt even notice it at first. ๐จ๐ฉ
Luckily, fixed it with 3 simple steps on Vercel ๐
Step 1: Go to your Vercel Dashboard โ Project โ Firewall โ Bot Management Turn ON both Bot Protection & AI Bot Protection.
Step 2: Open your Vercel Logs and check which user agents/IPs are spamming your site. Youโll often spot requests that return 429 (Too Many Requests) => those are your culprits. Create a Custom Rule in Bot Management and DENY those User Agents/IPs.
Step 3: Add BotID to your code โ Vercel BotID Docs
After doing these, all spam traffic instantly got blocked. Bots-free site โ
For full screenshots and step-by-step visuals, check out my post on X.
