• SCFG: configure Web Server request-header blocking (web_block.ini)

    From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Sat Nov 21 17:38:23 2026
    open https://gitlab.synchro.net/main/sbbs/-/work_items/1388

    #1375 added `ctrl/web_block.ini`: one `[header:<name>]` section per request header, numbered pattern keys (findstr syntax, tried in numeric key order), and per-section `FilterThreshold`, `FilterDuration` and `FilterSilent`. It is configured only by editing the file, so a sysop browsing SCFG never learns it exists.

    ## Proposal

    A **Blocked Request Headers...** item in SCFG -> Servers -> Web Server, near Rate Limiting:

    - The item shows the number of headers with rules (e.g. `2 headers`, or `None`).
    - The sub-menu lists the sections by header name, with their pattern count; add a header (prompted for its name, e.g. `User-Agent`, `Referer`, `Host`) or remove one.
    - Per header: an ordered pattern list (add, insert, edit, delete, and move, since order decides which `!` exception or plain pattern wins), plus Filter Threshold, Filter Duration and Filter Silent. Duration and Silent show "default" when unset, meaning the `[Web]` `RateLimitFilterDuration` / `RateLimitFilterSilent` values.
    - Help text covering the pattern syntax (`~`, `^`, `*`, `!`), that a section ending in `!` patterns is an allowlist, the `Host` rules (checked against the host name the server uses, no `:port`), and that clients in `ipfilter_exempt.cfg` are never blocked.

    ## Points to settle

    - **Writing the file:** edit the file's line list in place with the xpdev ini functions, so the stock comments and a sysop's own comments survive; renumber a section's patterns (0, 1, 2, ...) on save.
    - **Which file:** resolve the name with `iniFileName()` as the web server does, so SCFG edits the per-host (`web_block.<host>.ini`) or `.local` variant the server actually reads.
    - **No recycle needed:** the web server re-reads the file when its date changes; the help text should say so.

    -- *Authored by Claude (Claude Code), on behalf of @rswindell*
    --- SBBSecho 3.38-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)