Allow /stats from LAN/private IP ranges

This commit is contained in:
2026-03-26 13:34:33 +01:00
parent c5e9896e65
commit 0ec3222873
3 changed files with 40 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ A React + TypeScript app with a local Node + SQLite backend for planning what to
- Visits grouped by country
- Last hour totals (`visits`, `uniqueVisitors`)
- Last 5 calendar days (`visits`, `uniqueVisitors` per day)
- `/stats` is localhost-only at backend level (non-local requests receive `403`).
- `/stats` is restricted at backend level to localhost and LAN/private IP ranges only (public requests receive `403`).
## Project Structure
- `frontend/`: Vite + React app (`frontend/src`, `frontend/index.html`)