Settings
Stored as Omeka options:
| Option | Default |
|---|---|
traffic_guard_enabled |
1 |
traffic_guard_mode |
normal (elevated, under_attack) |
traffic_guard_auto_ban |
1 |
traffic_guard_auto_ban_ttl_seconds |
3600 |
traffic_guard_trust_xff |
0 |
traffic_guard_retention_days |
30 |
traffic_guard_auto_allowlist_private |
1 |
traffic_guard_log_allow |
0 |
traffic_guard_per_page |
50 |
traffic_guard_rate_limits |
JSON: mode → kind of page → requests per window |
traffic_guard_thresholds |
JSON: mode → throttle and block scores |
traffic_guard_window_seconds |
JSON: kind of page → window length (60) |
Tables
With Omeka's table prefix (omeka_tg_bans, for example):
| Table | Holds |
|---|---|
tg_rate_windows |
Request counts per address, kind of page and window start (UTC). Stale rows are pruned as requests come in. |
tg_bans |
Bans: address, reason (auto_score or manual), when, until (empty for no end), lifted, by whom, note. |
tg_events |
Slowed-down and blocked requests (and allowed ones when logged): time (UTC), address, user agent, path, kind, score, decision and the signals as JSON. |
tg_ua_rules |
User-agent rules: pattern, substring or regex, allow or block, priority, label, on or off. |
tg_ip_allowlist |
Allowlisted addresses and ranges, with a label and who added them. |
Times are stored in UTC and shown in the site's time zone.