Believable decoys
Serve realistic-looking trap files that feel exposed enough to attract probes without leaking any real secrets.
VitePot adds believable decoy files like /.env, /wp-config.php, and /backup.sql to Vite and VitePress builds so scanners, crawlers, and opportunistic bots waste time on bait instead of anything real.
import { vitepot } from '@itznotabug/vitepot'
export default {
plugins: [
vitepot({
variants: ['cms-roots', 'archive-roots'],
dirs: ['/legacy'],
custom: [{ path: '/private.env' }],
}),
],
}
Serve realistic-looking trap files that feel exposed enough to attract probes without leaking any real secrets.
Use middleware in development and emitted files in production builds without adding a separate honeypot stack.
Start with built-ins for common paths, then add custom file names, directories, and generated content where you need more coverage.
Environment-like files, cloud credentials, and framework config paths that commonly show up in scanner wordlists.
Git traces, framework configs, and deployment files that make the fake surface area feel more convincing.
Archive-style files, dump targets, and backup-looking paths for broader passive deception.
Serves traps directly from middleware without writing bait files to disk during development.
Emits trap files into the output so your deployed static site ships with bait already included.
Local and production preview behavior depends on the static server or host, especially for dotfiles and PHP-like trap paths.
Best fit: Vite and VitePress sites that want low-friction deception, fake sensitive files, and a cleaner static-first bot trap surface.