Block rules let you restrict access to certain paths and HTTP methods in your test environment. When a researcher sends a request that matches an enabled rule, the proxy returns the configured HTTP status code instead of forwarding the request to your origin.
Block rule fields
Retrieve current block rules
Response:
The blockListJson value is a JSON-encoded string containing the array of block rules.
Update block rules
The POST /api/sites/blocklist endpoint replaces the entire block rule list for a site. Construct your full desired list and submit it as a JSON-encoded string in the blockListJson field.
To clear all block rules, set blockListJson to an empty array:
Rules are applied by the proxy immediately after the update. Only rules with "enabled": true are enforced — you can disable a rule without removing it by setting "enabled": false.
The POST endpoint replaces all existing rules. Fetch the current list first if you want to add a rule without removing the ones already in place.