1. Go to this page and download the library: Download soumairi/domain-checker 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/ */
return [
/**
* Allowed domains of all the incoming HTTP requests to the application to make a call to our application.
*/
'allowed_domains' => [
'localhost',
'127.0.0.1',
],
/**
* Custom Error Message
*/
'error_message' => 'This host is not allowed'
];