Allow /stats from LAN/private IP ranges
This commit is contained in:
@@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user