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:
11
data/web/f2b-banlist.php
Normal file
11
data/web/f2b-banlist.php
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user