---
title: "Site-wide browser blocking"
method: PUT
path: "/sites/{id}/script-blocking"
tags: ["Scanner"]
---

# Site-wide browser blocking

`PUT /sites/{id}/script-blocking`

## Request

- Base URL: `http://localhost:3001/api/v1`
- URL: `http://localhost:3001/api/v1/sites/{id}/script-blocking`
- Auth: HTTP bearer

Turns site-wide client-side script blocking on or off. Changes the consent version, so visitors see the banner again.

## Path parameters

- `id` string, uuid, required: Site ID

## Request body

- object
  - `enabled` boolean, required

## Response `200`

Updated

- object
  - `success` boolean, required

## Other responses

- `404`: Site not found

---

[API](https://skmtc.dev/consentlayer/apis/consentlayer-api.md) · [All operations](https://skmtc.dev/consentlayer/apis/consentlayer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/consentlayer/apis/consentlayer-api/revisions/b89d4b189d50?raw)
