update_site_filters
Update website visitor filters to control who gets counted and who can view stats. Replace country, hostname, or IP blocklists, or toggle public dashboard access.
Instructions
Change who gets counted, and who may look. Send only the sections you want to change — an omitted section is left untouched. A section you DO send replaces that setting entirely: {"countries":{"blocked":["RU"]}} also clears the country allow list, and {"blocked_ips":[]} empties the blocklist. Read the current state with get_site_filters and send it back with your edit applied. Filtering takes effect on new traffic; it does not remove data already collected. Answers with the resulting state plus "updated":["hostnames",...] naming what changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | site_id from list_sites. | |
| countries | No | Replaces the country lists. ISO 3166-1 alpha-2 codes, e.g. "UA". | |
| hostnames | No | Replaces the hostname lists. Allowed non-empty = count only these. | |
| blocked_ips | No | Replaces the IP blocklist. | |
| public_dashboard | No | true makes the stats readable by anyone with the link. |