teknium1
30c417fe70
feat: add website blocklist enforcement for web/browser tools (#1064)
Adds security.website_blocklist config for user-managed domain blocking
across URL-capable tools. Enforced at the tool level (not monkey-patching)
so it's safe and predictable.
- tools/website_policy.py: shared policy loader with domain normalization,
wildcard support (*.tracking.example), shared file imports, and
structured block metadata
- web_extract: pre-fetch URL check + post-redirect recheck
- web_crawl: pre-crawl URL check + per-page URL recheck
- browser_navigate: pre-navigation URL check
- Blocked responses include blocked_by_policy metadata so the agent
can explain exactly what was denied
Config:
security:
website_blocklist:
enabled: true
domains: ["evil.com", "*.tracking.example"]
shared_files: ["team-blocklist.txt"]
Salvaged from PR #1086 by @kshitijk4poor. Browser post-redirect checks
deferred (browser_tool was fully rewritten since the PR branched).
Co-authored-by: kshitijk4poor <kshitijk4poor@users.noreply.github.com>
2026-03-17 02:59:39 -07:00
..
2026-03-17 00:16:34 -07:00
2026-03-17 02:34:35 -07:00
2026-03-17 02:33:12 -07:00
2026-03-14 12:21:50 -07:00
2026-03-17 02:22:12 -07:00
2026-03-17 02:59:39 -07:00
2026-03-16 04:43:37 -07:00
2026-03-15 20:21:21 -07:00
2026-03-16 23:13:26 -07:00
2026-03-17 02:53:30 -07:00
2026-02-21 03:53:24 -08:00
2026-03-17 02:53:33 -07:00
2026-03-17 02:57:02 -07:00
2026-03-17 01:50:59 -07:00
2026-03-16 05:29:25 -07:00
2026-03-15 20:21:21 -07:00
2026-03-16 00:23:47 -07:00
2026-03-15 20:21:21 -07:00
2026-03-17 02:59:21 -07:00
2026-02-23 02:11:33 -08:00
2026-03-14 06:22:02 -07:00
2026-03-16 06:52:32 -07:00
2026-03-15 20:21:21 -07:00
2026-03-17 02:33:12 -07:00
2026-03-11 20:02:36 -07:00
2026-03-14 03:47:13 -07:00
2026-03-15 20:21:21 -07:00
2026-03-15 20:21:21 -07:00
2026-03-15 20:21:21 -07:00
2026-03-17 02:53:30 -07:00
2026-03-16 05:22:00 -07:00
2026-03-17 01:53:58 -07:00
2026-03-14 11:27:02 -07:00
2026-03-17 02:13:34 -07:00
2026-03-08 23:53:57 -07:00
2026-03-17 01:50:59 -07:00
2026-03-17 02:34:35 -07:00
2026-03-16 23:39:41 -07:00
2026-03-15 20:21:21 -07:00
2026-03-15 21:51:40 -07:00
2026-03-17 02:33:12 -07:00
2026-03-15 20:21:21 -07:00
2026-03-14 22:09:59 -07:00
2026-03-17 02:59:39 -07:00
2026-03-17 02:59:39 -07:00