<?php header('Content-Type: application/json');$blockedFile='../banip/blocked.txt';$response=['status'=>'success','ips'=>[]];if(file_exists($blockedFile)){$ips=file($blockedFile,FILE_IGNORE_NEW_LINES|FILE_SKIP_EMPTY_LINES);$response['ips']=$ips;}echo json_encode($response);?>