PHP code example of php-middleware / block-robots
1. Go to this page and download the library: Download php-middleware/block-robots 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-middleware / block-robots example snippets
$blockRobotsMiddleware = new PhpMiddleware\BlockRobots\BlockRobotsMiddleware();
$app = new MiddlewareRunner();
$app->add($blockRobotsMiddleware);
$app->run($request, $response);
bash
composer