PHP code example of metrictower / funnypot-wordpress

1. Go to this page and download the library: Download metrictower/funnypot-wordpress 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/ */

    

metrictower / funnypot-wordpress example snippets


define('HONEYPOT_WP_MAINNET_BASE_URL', 'https://mainnet.example');  // scheme+host only
define('HONEYPOT_WP_MAINNET_KEY', '…');                             // a sensor-tier key
define('HONEYPOT_WP_RULES_AUTOUPDATE', true);                       // force corpus auto-update on/off
define('HONEYPOT_WP_RULES_DIR', '/var/lib/honeypot-wp-rules');      // corpus data dir (see below)

define('DISABLE_WP_CRON', true);   // in wp-config.php
# crontab:
*/5 * * * * wp honeypot report-drain --path=/var/www/html >/dev/null 2>&1
0   * * * * wp honeypot mirror-pull  --path=/var/www/html >/dev/null 2>&1