1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-24 23:31:34 +00:00

[Web] remove f2b banlist from json_api.php

This commit is contained in:
FreddleSpl0it
2024-04-04 16:27:48 +02:00
parent bca4e1a03d
commit 852d944cfb
4 changed files with 13 additions and 16 deletions

11
data/web/f2b-banlist.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
if (isset($_GET['id'])) {
header('Content-Type: text/plain');
echo fail2ban('banlist', 'get', $_GET['id']);
} else {
header('HTTP/1.1 404 Not Found');
exit;
}