Download the PHP package ilogus/laravel-honeypotplus without Composer

On this page you can find all versions of the php package ilogus/laravel-honeypotplus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-honeypotplus

HoneypotPlus for Laravel

A Laravel package that detects malicious IPs attempting to access sensitive files/paths, bans them via Cloudflare, reports them to AbuseIPDB, and provides an interactive CLI management interface.

Note: This package is not a form honeypot. For form honeypot protection, consider using spatie/laravel-honeypot. HoneypotPlus focuses on detecting malicious reconnaissance attempts on sensitive paths like .env, .git, wp-admin, etc.

Tests Coverage License

Features

Requirements

Installation

Install the package:

This will:

Configuration

The package works out of the box with default settings. To customize, edit the published configuration file:

Environment Variables

Add the following to your .env file:

Getting Cloudflare API Token

  1. Go to Cloudflare Dashboard
  2. Navigate to My Profile → API Tokens
  3. Create a token with Edit permission for Zone → Firewall Rules
  4. Copy the token

Getting AbuseIPDB API Key

  1. Sign up at AbuseIPDB
  2. Navigate to API section
  3. Copy your API key

Usage

Middleware

Add the middleware to your application to intercept malicious requests before Laravel's routing:

Important: Use append() to ensure the honeypot middleware runs before Laravel's routing. Otherwise, Laravel will return a 404 page for non-existent routes instead of allowing the honeypot to detect and block malicious IPs.

Custom Honeypot Rules

In config/honeypot-plus.php, you can customize the honeypot patterns:

CLI Management

List and manage blocked IPs interactively:

Available actions:

Manual Ban/Unban via Facade

Artisan Commands

Command Description
php artisan honeypot-plus:install Install the package (publish config & migration)
php artisan honeypot-plus:manage Interactive IP management
php artisan honeypot-plus:cleanup Clean up expired bans (runs automatically)

Automatic Scheduling

The cleanup command is automatically registered in Laravel's scheduler. No manual configuration needed.

To verify the schedule:

Database Schema

The package creates a honeypot_plus_attacks table with the following columns:

Column Type Description
id bigint Primary key
ip string Attacker IP address
honeypot_rule string Matched honeypot pattern
user_agent string (nullable) Request user agent
http_method string Request method (GET, POST, etc.)
path_requested string Requested path
reported_at timestamp (nullable) When reported to AbuseIPDB
cf_rule_id string (nullable) Cloudflare rule ID
expiration_at timestamp (nullable) Ban expiration
is_blocked boolean Currently blocked
already_reported boolean Already reported to AbuseIPDB
last_seen_at timestamp (nullable) Last activity

Architecture

The package follows Laravel best practices with a clean, event-driven architecture:

Testing

Run the test suite:

Run with coverage:

Security

If you discover a security vulnerability, please email [email protected].

License

HoneypotPlus is open-source software licensed under the MIT license.

Credits

Support


All versions of laravel-honeypotplus with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^11.54|^12.0|^13.0
illuminate/http Version ^11.54|^12.0|^13.0
illuminate/console Version ^11.54|^12.0|^13.0
illuminate/events Version ^11.54|^12.0|^13.0
illuminate/queue Version ^11.54|^12.0|^13.0
illuminate/database Version ^11.54|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ilogus/laravel-honeypotplus contains the following files

Loading the files please wait ...