post.php: add IP API check

This commit is contained in:
Zankaria 2024-10-06 12:48:51 +02:00
parent 2337f99078
commit a422122dd4

View file

@ -469,6 +469,10 @@ function handle_delete()
checkDNSBL();
if (checkIPAPI($_SERVER['REMOTE_ADDR'])) {
error($config['error']['proxy']);
}
// Check if board exists
if (!openBoard($_POST['board'])) {
error($config['error']['noboard']);
@ -577,6 +581,10 @@ function handle_report()
checkDNSBL();
if (checkIPAPI($_SERVER['REMOTE_ADDR'])) {
error($config['error']['proxy']);
}
// Check if board exists.
if (!openBoard($_POST['board'])) {
error($config['error']['noboard']);
@ -855,6 +863,10 @@ function handle_post()
checkDNSBL();
if (checkIPAPI($_SERVER['REMOTE_ADDR'])) {
error($config['error']['proxy']);
}
// Check if banned
checkBan($board['uri']);