config.php: refactor IPHub api to be a more generic IP api

This commit is contained in:
Zankaria 2024-10-06 12:37:45 +02:00
parent e7bae1d972
commit 1cc87c31aa

View file

@ -236,18 +236,23 @@
// To prevent bump atacks; returns the thread to last position after the last post is deleted. // To prevent bump atacks; returns the thread to last position after the last post is deleted.
$config['anti_bump_flood'] = false; $config['anti_bump_flood'] = false;
// IPHub API key for checking for bad proxies (leave blank to not use IPHub) https://iphub.info/api // Use 3rd part APIs to check if an IP should be blocked.
$config['iphub_key'] = ""; $config['ip_api'] = [
'iphub' => [
// If you find that a lot of spammers are comming from a specific ISP, or ASN, // Enable or disable the IPHub API backend.
// you can put the ISP in iphub_banned_isps and/or the ASN in iphub_banned_asns 'enabled' => false,
// USE THIS WITH CAUTION, IT MAY PREVENT NON-SPAMMERS FROM POSTING // IPHub API key for checking for bad proxies (https://iphub.info/api).
$config['iphub_banned_isps'] = []; 'key' => '',
$config['iphub_banned_asns'] = []; ],
// If you find that a lot of spammers are coming from a specific ISP, or ASN,
// IPs in this array won't be checked by IPHub // you can put the ISP in isp_blacklist and/or the ASN in asn_blacklist
// This can be used if legitimate posters are getting blocked by IPHub // USE THIS WITH CAUTION, IT MAY PREVENT NON-SPAMMERS FROM POSTING
$config['iphub_whitelisted_ips'] = []; 'isp_blacklist' => [],
'asn_blacklist' => [],
// IPs in this array won't be checked.
// This can be used if known legitimate posters are getting blocked by a backend.
'ip_whitelist' => []
];
/* /*
* Introduction to Tinyboard's spam filter: * Introduction to Tinyboard's spam filter: