1. Go to this page and download the library: Download middlewares/honeypot 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/ */
middlewares / honeypot example snippets
$dispatcher = new Dispatcher([
new Middlewares\Honeypot()
]);
$response = $dispatcher->dispatch(new ServerRequest());
//Check the default "htp_name" value
$honeypot = new Middlewares\Honeypot();
//Check other value, for example "nobots"
$honeypot = new Middlewares\Honeypot('nobots');
$responseFactory = new MyOwnResponseFactory();
$honeypot = new Middlewares\Honeypot('htp_name', $responseFactory);
html
<form method="POST">
<?= Middlewares\Honeypot::getHiddenField()
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.