The export and import file format is a JSON object with aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/alexperezortuno/ce-blocker/llms.txt
Use this file to discover all available pages before exploring further.
rules array and an isEnabled flag. It is the single interchange format used across all import paths in Traffic Blocker — local file export, file import, URL import, and preset loading — making it straightforward to back up your configuration, share rule sets with others, or manage rules in bulk outside the extension UI.
Top-level structure
Array of rule objects to be registered with the Chrome
declarativeNetRequest engine. Each entry follows the Rule Schema. An empty array is valid and results in no active blocking rules.Whether the traffic blocker was active at the time the file was exported. When this file is imported, this value controls whether blocking is switched on after the import completes.
Full example
Import compatibility
The importer accepts several input shapes to maintain backwards compatibility with older exports and third-party rule lists:- Object format (standard export):
{ "rules": [...] }— the canonical format produced by the export function. - Object-valued
rules(legacy): if therulesvalue is a JSON object rather than an array, it is converted to an array automatically viaObject.values()before processing. - Missing fields: Any rule with absent or malformed fields is auto-fixed before being registered. See Rule Schema — Auto-fix behavior for the exact defaulting logic.
Using imported isEnabled
The importer reads the isEnabled value from the JSON file when it is present and uses it to set the blocker’s enabled state after the import completes. If the field is absent from the file, the extension’s current enabled state is preserved unchanged. This means a file exported while blocking was active ("isEnabled": true) will automatically re-enable blocking on import, while a file missing the field entirely leaves whatever state the extension is currently in.
IDs in the imported file are ignored — Traffic Blocker’s background service worker reassigns IDs sequentially starting from 1 after every import.