1. Go to this page and download the library: Download olssonm/blockip library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
php
use Olssonm\Blockip\Handlers\BaseHandler;
class MyHandler implements BaseHandler {
/**
* @return string
*/
public function getIp() {
// Method to retrieve the request IP
}
/**
* @return array
*/
public function getIpsToBlock() {
// Method to set what IPs to be blocked
}
/**
* @return response
*/
public function getError() {
// Method to set the response
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.