I’m not too sure on that, I’ll let someone else reply with that one.
You can always use a PHP alternative though.
If it’s just PHP you want, then something like
$ban_arr = array();
$ban_arr = “123.456.789.1”;
echo “You are banned.”;
Just keep adding a new $ban_arr for each banned id. Your best bet is to put this in a file called ban.php and then include it in all your files that need it. Problem with this method is you would have to upload the script everytime someone wants banning. And it won’t ban IP ranges. But it’s a quick and easy way to do it.
Or you could store the IPs in a database. But everytime the script is called, it would query the database which takes longer and increases the amount of open queries for you db.