Overview
For each domain, you can:- View the number of sessions that visited the domain
- See when the domain was last accessed
- Configure blocking rules (visit/exit restrictions)
- Expand to view all sessions for that domain
- Review screenshots from domain sessions
Domains are automatically extracted from session URLs. The page groups sessions by hostname.
Domain Table
The main table displays all unique domains sorted by most recent activity.Table Columns
| Column | Description |
|---|---|
| Domain | Hostname (e.g., github.com, anthropic.com) |
| Sessions | Number of sessions that visited this domain |
| Last Session | Timestamp of the most recent session |
| Block | Dropdown to configure blocking rules |
| Actions | Expand/collapse button to view sessions |
Blocking Rules
ContextFort supports four blocking modes for each domain:None (Allowed)
Badge: Green “ALLOWED”Behavior: No restrictions. Agent can visit and leave the domain freely.Use case: Trusted domains like
anthropic.com or github.comBlock Visit
Badge: Orange “BLOCK VISIT”Behavior: Agent cannot navigate TO this domain from other sites.Use case: Prevent agent from accessing sensitive internal tools
Block Exit
Badge: Blue “BLOCK EXIT”Behavior: Agent cannot navigate away FROM this domain to other sites.Use case: Keep agent contained within a specific domain (e.g., documentation site)
Block Both
Badge: Red “BLOCK BOTH”Behavior: Fully blocked. Agent cannot visit or leave the domain.Use case: Completely restrict access to untrusted or dangerous domains
Configuring Blocks
Select a blocking mode
Choose:
- No blocking (green badge)
- Can’t go TO (orange badge)
- Can’t leave FROM (blue badge)
- Fully blocked (red badge)
Viewing Domain Sessions
Expand a domain to see all sessions that visited it:Review session cards
Each session shows:
- Screenshot preview (or placeholder if none)
- Session status (active/ended)
- Timestamp of when it started
- Page title and URL
- Screenshot count
Session Cards
When a domain is expanded, you see a grid of session cards:Card Layout
- Top section: Screenshot preview (or “No Screenshots” placeholder)
- Badge indicators:
- Green “active” for ongoing sessions
- Gray “ended” for completed sessions
- Screenshot count in top-right corner
- Bottom section:
- Session timestamp
- Page title (truncated)
- Page URL (truncated)
- “View Session” button
Session cards are sorted by most recent first within each domain.
Empty States
No Domains Visited Yet
If you see this message:- No agent sessions have been recorded
- Sessions exist but have invalid URLs
- Chrome storage was cleared
No Screenshots
If a session card shows the placeholder:- The session has no captured screenshots
- This was a brief navigation with no monitored events
- Screenshots were cleared from storage
URL Blocking Rules Storage
Blocking rules are stored as tuples in Chrome storage:Refreshing Data
Click the Refresh button to reload domains and sessions:- Data is loaded from
chrome.storage.local(keys:sessions,screenshots,urlBlockingRules) - Domains are re-grouped and re-sorted
- Expansion state is preserved
Use Cases
Domain Allowlisting
Create a safe list:- Review all visited domains
- Set “Block Visit” for untrusted domains
- Keep trusted domains as “Allowed”
Domain Isolation
Keep agent contained:- Set “Block Exit” on the target domain
- Agent can work within the domain but can’t navigate away
- Useful for scoped tasks (e.g., “work only on docs.example.com”)
Domain Audit
Review domain access:- Expand each domain to see all sessions
- Check screenshot previews for unexpected behavior
- Click “View Session” for detailed investigation
Best Practices
Technical Details
The Domains page:- Loads from
chrome.storage.local(keys:sessions,screenshots,urlBlockingRules) - Extracts domains using
new URL(session.tabUrl).hostname - Sends
RELOAD_BLOCKING_RULESmessage to background script when rules change - Uses Chrome’s declarativeNetRequest API for enforcement
- Sessions are deduplicated by ID before grouping
Next Steps
Grant Access
Give time-limited write permissions to trusted domains
Review Sessions
See detailed screenshots and events for domain sessions