
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
bot-detection
Advanced tools
Zero‑config client bot detector. Import it once, and it sets a cookie isbot to true (bot) or false (human). No server, no telemetry, no configuration required.
isbot cookienavigator.webdriver, empty languages/pluginsfalsenpm install bot-detection
import 'bot-detection/auto'; // sets document.cookie isbot=true|false
function getCookie(name: string) {
return document.cookie
.split(';')
.map(s => s.trim())
.find(s => s.startsWith(name + '='))?.split('=')[1];
}
const isBot = getCookie('isbot') === 'true';
;(window as any).__BOT_DETECTION__ = {
// Lower the threshold and raise flip requirements
strict: true, // default false
threshold: 0.5, // default 0.6 (0..1)
debug: true, // logs score and reasons to console
};
import 'bot-detection/auto';
src/index.tsx or src/index.jsx.src/main.tsx or src/main.jsx.app/layout.tsx.// app/bot-detect-client.tsx
'use client'
import 'bot-detection/auto'
export default function BotDetectClient(){ return null }
// app/layout.tsx
import BotDetectClient from './bot-detect-client'
export default function RootLayout({ children }){
return (
<html><body>
<BotDetectClient />
{children}
</body></html>
)
}
isbot cookie:
document.cookie).localhost.false.POST /api/bot/telemetry 404 in your dev server:
npm i bot-detection@latest.window.__BOT_DETECTION__ or manually posts to /api/bot/telemetry.isbot, value 'true' | 'false''false'navigator.webdrivernavigator.languages / navigator.pluginsmaxTouchPoints mismatch (small weight)hardwareConcurrency <= 1 (small weight)window.chrome (small weight)devicePixelRatio === 1 with very large width (tiny weight)strict and lower threshold, but expect more false positives.FAQs
Zero‑config client bot detector that sets an 'isbot' cookie.
The npm package bot-detection receives a total of 19 weekly downloads. As such, bot-detection popularity was classified as not popular.
We found that bot-detection demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.