Add IPHub querying support

This commit is contained in:
Zeke Roa 2019-04-26 17:28:27 -07:00 committed by Zankaria
parent 169bf13f5d
commit 44e07295e5
2 changed files with 55 additions and 0 deletions

View file

@ -236,6 +236,19 @@
// To prevent bump atacks; returns the thread to last position after the last post is deleted.
$config['anti_bump_flood'] = false;
// IPHub API key for checking for bad proxies (leave blank to not use IPHub) https://iphub.info/api
$config['iphub_key'] = "";
// If you find that a lot of spammers are comming from a specific ISP, or ASN,
// you can put the ISP in iphub_banned_isps and/or the ASN in iphub_banned_asns
// USE THIS WITH CAUTION, IT MAY PREVENT NON-SPAMMERS FROM POSTING
$config['iphub_banned_isps'] = [];
$config['iphub_banned_asns'] = [];
// IPs in this array won't be checked by IPHub
// This can be used if legitimate posters are getting blocked by IPHub
$config['iphub_whitelisted_ips'] = [];
/*
* Introduction to Tinyboard's spam filter:
*
@ -1198,6 +1211,7 @@
// Error messages
$config['error']['bot'] = _('You look like a bot.');
$config['error']['proxy'] = _('You seem to be using an unathorized proxy.');
$config['error']['referer'] = _('Your browser sent an invalid or no HTTP referer.');
$config['error']['toolong'] = _('The %s field was too long.');
$config['error']['toolong_body'] = _('The body was too long.');