How shineakhanda4/cave-ddos-shield works
Cave DDoS Shield is a small, single-process DDoS monitoring and protection web application. Its principal workflow is an operator signing in, viewing monitoring and analytics, and having detected threats blocked automatically; the README also documents a public view and account settings. The backend, authentication, detection, persistence, and blocking logic reside in app.js, while the HTML pages are served as static files. Source excerpts show database-backed IP tracking and Linux firewall calls. Live UI wiring and the full route implementations were not sampled, so those relationships are left unverified.
Main entry points: app.js HTTP server · dashboard.html Dashboard · login.html Login page · public.html Public view
Components 13
Web interface
- Login page
login.html - Dashboard
dashboard.html - Public view
public.html - Settings page
settings.html - Password page
change-password.html
Application service
- HTTP server
app.js - Authentication
app.js
Detection and response
- Live monitoring
app.js - Threat detection
app.js - IP blocking
app.js
Persistent state
- SQLite state
app.js
Other components
- Operator
- Linux firewall
Connections 19
- Operator → Login page: opens
readme.md - Operator → Dashboard: views
readme.md - Operator → Public view: views
readme.md - Operator → Settings page: manages
- Operator → Password page: changes password
- HTTP server → Login page: serves static files
app.js - HTTP server → Dashboard: serves static files
app.js - HTTP server → Public view: serves static files
app.js - HTTP server → Settings page: serves static files
app.js - HTTP server → Password page: serves static files
app.js - HTTP server → Authentication: routes auth requests
app.js - Authentication → SQLite state: reads and writes
app.js - Live monitoring → Threat detection: runs checks
app.js - Live monitoring → SQLite state: tracks IPs
app.js - Threat detection → IP blocking: triggers auto-block
app.js - IP blocking → SQLite state: updates block state
app.js - IP blocking → Linux firewall: uses iptables
app.js - Dashboard → HTTP server: requests live data
- HTTP server → Dashboard: publishes monitoring