example.com also matches www.example.com. If a domain matches both lists, the Allowlist takes precedence. To block an entire top-level domain, add its bare name, such as zip, to the Denylist.
Read a list
GET returns the complete list, newest entries first, including inactive entries. To read the Allowlist, change denylist to allowlist.
Add an entry
id as a lowercase ASCII domain. Omit leading dots and wildcards. Use Punycode for internationalized names. The optional boolean active defaults to true. All successful writes on these endpoints return 204 No Content.
Adding an existing ID returns HTTP 200 with an errors array containing {"code":"duplicate"}. To change an existing entry, use PATCH.
Disable or remove an entry
To keep an entry in the list and pause its effect, setactive to false. Send true to enable it again.
DELETE to the same URL.
404 Not Found.
Replace a list
PUT takes the full array of entries. It removes every existing entry omitted from the request, including inactive entries. Sending [] clears the list.
400 and keeps the existing list.
413 with contentTooLarge, even if the entry count is within the limit.