Get the list of blacklisted domains

  • GET / blacklist

Example

Request:

GET /blacklist

Response:

200 OK
{ "domains":                 ["blockedwebsite.net",                "@blockedwebsite.com"] }

Data type

  • domain. string, read and update, not required 

Add one domain to blacklist

  • POST / blacklist?domain={domain}

Example

Request:

POST /blacklist?domain=blockedwebsite.net

Response:

200 OK

Remove one domain from blacklist

  • DELETE / blacklist

Example

Request:

Delete /blacklist
      { "domain": "blockedwebsite.net" }

Response:

200 OK

Data type

  • domain. string, read and update, not required
Did this answer your question?