A clever rickrolling service that shows proper video metadata to web crawlers while redirecting regular visitors to Rick Astley's "Never Gonna Give You Up".
- Spider Detection: Identifies web crawlers and bots using
spider-detector - Open Graph Support: Fetches and displays proper video metadata for social media previews
- Modern Codebase: Updated dependencies with security patches
- Development Tools: ESLint, Prettier, and Jest testing configured
# Install dependencies npm install # Or with Yarn yarn install
# Start the server npm start # Development mode with auto-reload npm run dev # Run tests npm test # Lint code npm run lint # Format code npm run format
- User visits
/v/:videoIdwith any YouTube video ID - Spider detector checks if the visitor is a bot/crawler
- For bots: Fetches and displays actual video metadata
- For humans: Redirects to the rickroll video
PORT- Server port (default: 3000)NODE_ENV- Environment (development/production)
This project has been updated to address all known security vulnerabilities. Regular dependency updates are recommended.
Private project