Panel | |||||
---|---|---|---|---|---|
| |||||
API description, development and DNSBL docs
|
...
Permission flag | Description | ||
---|---|---|---|
allow_cidr | The usage of CIDR-blocks are normally not permitted by the DNSBL API, in more functions than listing them. This permission also opens up for usage in DELETE/UPDATE cases (in our local e-mail requests where support sometimes cover CIDR-block removals, this would help a lot). However, adding data with CIDR and different flags might be a problem (this permission does not exist in the API yet) | ||
allow_cidr_update | Setting that partially allows CIDR-block updates for the DNSBL (there migt me limitations linked to this permission - see the documentation for this information) Current limitations: Not lower than 24 | global_delist||
Global delisting permission (can use as delisting service for visitors) | local_delist | Local delisting permission (server can delist self)_purge | Special ability to purge hosts instead of marking them deleted in the database |
dnsbl_update | Standard DNSBL ability to update data in the DNSBL (dnsbl.tornevall.org and bl.fraudbl.org) | ||
fraudbl_update | Extended ability to handle fraudbl-commerce (this is not the regular bl.fraudbl.org resolver) | ||
global_delist | Global delisting permission (can | _purgeSpecial ability to purge hosts instead of marking them deleted in the databaseuse as delisting service for visitors) | |
local_delist | Local delisting permission (server can delist self) | ||
overwrite_flags | When sending new or updated data to DNSBL, clients can only add more flags to the host. This feature makes it possible to overwrite old flags Not yet implemented |
...
Method | URL/data | The parameter | Expected response |
---|---|---|---|
HTTP POST | https://api.tornevall.net/2.0/dnsbl/ip/ | ||
HTTP POST variables | ?bulk[]=ipaddr1&bulk[]=ipaddr2 | bulk[]=ipAddr | Arrayed (or not arrayed by only using bulk=ipAddr) request should return information about the current blacklisted ip (if it is blacklisted). To return fingerprints about the ip address, you could add ipAddr|e, where e stands for extended information. To add or delete a host in the blacklist, with specific permissions additional parameters was used: |a|<bitValue> for adding the address with a bit value (described here), or |d for deletion. Additional parameters (with permissions) could be used to purge (p) content. |
...
Method | URL | Information | Data (POST parameters) | Expected response | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
HTTP POST | https://api.tornevall.net/3.0/dnsbl/ or | HTTP POST has the same role as HTTP GET but with post parameters. Supports IPv6. | URL-encoded or JSON-formatted:
This example is the same for the rest of examples in this table. | Is ip listed? | |||||||||||||
HTTP PUT | https://api.tornevall.net/3.0/dnsbl/ | Insert or update ip address |
Example:
| ||||||||||||||
HTTP DELETE | https://api.tornevall.net/3.0/dnsbl/ | Delist (delete/remove) ip address | Example:
|
...