f2b-banlist.php 254 B

1234567891011
  1. <?php
  2. require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
  3. if (isset($_GET['id'])) {
  4. header('Content-Type: text/plain');
  5. echo fail2ban('banlist', 'get', $_GET['id']);
  6. } else {
  7. header('HTTP/1.1 404 Not Found');
  8. exit;
  9. }