How hypertrophic/hostlog works
HostLog logs PHP-site requests into per-domain daily files, then offers two analysis routes: a local Python report/blocklist workflow and a server-side PHP dashboard for live review and log management. The dashboard flow includes password login, analysis, alerts and flagged-request views, IP blocking, whitelist management, log download/deletion, and custom-field export. Logger behavior and dashboard analysis/action calls are visible in excerpts; other dashboard UI wiring and several local-analyzer details are documented but not fully sampled.
Main entry points: actions.php Dashboard actions · analyzer.py Local analyzer · dashboard.php Dashboard analysis view · logger.php Request logger
Components 18
Request Capture
- Request logger
PRIVATE/hostinger-logger/logger.php - Daily log files
Local Analysis
- Local analyzer
local-analyzer/analyzer.py - Analysis report
- Generated blocklist
Dashboard
- Login and lockout
PUBLIC/dashboard/index.php - Dashboard analysis view
PUBLIC/dashboard/dashboard.php - PHP analysis engine
PRIVATE/hostlog-config/analyzer.php - Dashboard actions
PUBLIC/dashboard/actions.php - Dashboard interactions
PUBLIC/dashboard/assets/app.js - Site access rules
- Whitelist data
Configuration
- Logger settings
PRIVATE/hostinger-logger/config.php - Local analyzer settings
local-analyzer/config.json - Dashboard settings
PRIVATE/hostlog-config/config.php
Other components
- Site visitor
- Local operator
- Dashboard user
Connections 21
- Site visitor → Request logger: triggers request logging
README.md - Request logger → Logger settings: loads settings
PRIVATE/hostinger-logger/logger.php - Request logger → Daily log files: writes request logs
PRIVATE/hostinger-logger/logger.php - Local operator → Daily log files: downloads logs
README.md - Local operator → Local analyzer: runs analysis
local-analyzer/analyzer.py - Local analyzer → Local analyzer settings: reads settings
local-analyzer/analyzer.py - Local analyzer → Daily log files: reads downloaded logs
README.md - Local analyzer → Analysis report: generates report
README.md - Local analyzer → Generated blocklist: writes blocklist
local-analyzer/analyzer.py - Dashboard user → Login and lockout: submits credentials
PUBLIC/dashboard/index.php - Login and lockout → Dashboard analysis view: redirects on success
PUBLIC/dashboard/index.php - Dashboard analysis view → Dashboard settings: loads settings
PUBLIC/dashboard/dashboard.php - Dashboard analysis view → PHP analysis engine: runs analysis
PUBLIC/dashboard/dashboard.php - PHP analysis engine → Daily log files: reads log files
PRIVATE/hostlog-config/analyzer.php - Dashboard analysis view → Dashboard actions: requests actions
README.md - Dashboard interactions → Dashboard actions: sends AJAX requests
README.md - Dashboard actions → Dashboard settings: loads settings
PUBLIC/dashboard/actions.php - Dashboard actions → PHP analysis engine: analyzes custom data
PUBLIC/dashboard/actions.php - Dashboard actions → Daily log files: downloads or deletes
PUBLIC/dashboard/actions.php - Dashboard actions → Site access rules: updates IP blocks
PUBLIC/dashboard/actions.php - Dashboard actions → Whitelist data: updates whitelist
PUBLIC/dashboard/actions.php