How Autoban Php Works

I have decided to make a guide on the autoban.php file which is included with Cron, since the code of it could be very complex for non-programmers

Lets look at the first bit of code:

Connecting to the server

include(../../incl/lib/connection.php)

At First, the code includes Connection.php which includes the server login information. this is a crucial part of the code since it cannot ban hackers/innocent players without being able to log in to the db.

Calculating the stars

$query = $db->prepare("too much code")

Comparing users with calculated stars

$query->execute();

IP banning.

Guide end

i hope this will help you understand how cron and autoban.php bans users. goodbye until i figure out anything else most likely related with cron.php.

Last updated