0055857df4
feat: Rozbudowa systemu analityki użytkowników
...
Nowe funkcjonalności:
- GeoIP enrichment (kraj, miasto, region)
- UTM parameters tracking (source, medium, campaign, term, content)
- Bounce rate calculation
- Search queries logging
- Conversion tracking (register, login, contact_click, rsvp)
- Scroll depth tracking (25%, 50%, 75%, 100%)
- JS error tracking (window.onerror)
- Performance metrics (Web Vitals)
- CSV export (sessions, pageviews, searches, conversions)
Nowe tabele SQL:
- search_queries
- conversion_events
- js_errors
- popular_searches_daily
- hourly_activity
Dashboard rozszerzony o nowe sekcje i metryki.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 15:52:18 +01:00
cb574851cf
feat: Add GeoIP blocking for high-risk countries (RU, CN, KP, IR, BY, SY, VE, CU)
...
- Update security_service.py with BLOCKED_COUNTRIES list
- Add check_geoip() middleware in app.py
- Log blocked attempts with security alerts
- Uses MaxMind GeoLite2-Country database
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 22:11:53 +01:00
0dba52e9c4
feat: Add security features - 2FA, audit log, alerting
...
Security enhancements:
- Two-Factor Authentication (TOTP) for all users
- Enable/disable 2FA in settings
- Backup codes for recovery
- Login flow with 2FA verification
- Audit log for admin actions
- Track all sensitive operations
- IP address and user agent logging
- Security alerts system
- Alert types: brute_force, honeypot_hit, account_locked, geo_blocked
- Email notifications for high/critical alerts
- Dashboard for alert management
- Admin security dashboard (/admin/security)
- View/acknowledge/resolve alerts
- Unlock locked accounts
- 2FA status overview
New files:
- security_service.py: Security utilities
- templates/auth/verify_2fa.html
- templates/auth/2fa_settings.html
- templates/auth/2fa_setup.html
- templates/auth/2fa_backup_codes.html
- templates/admin/security_dashboard.html
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 21:23:27 +01:00