aran112000 / nope-php
A light-weight tool for parsing log files in real-time and blocking requests that match certain pattern you define
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 0
Forks: 0
Open Issues: 6
Type:project
Requires (Dev)
- phpstan/phpstan: ^0.12.25
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2025-04-18 03:10:50 UTC
README
The log processing framework for blocking those pesky bots!
Designed as a fully customisable framework to process your log files in realtime block any activity identified as malicious using iptables
and iplist
.
Installation
If you're using composer, simply run:
composer require aran112000/nope-php
Current expected Nginx access log format
'[$time_local] $request_method $scheme://$host$request_uri "$request" "$status" "$http_x_forwarded_for" "$remote_addr" "$remote_user" "$bytes_sent" "$http_referer" "$http_user_agent" "$sent_http_content_type"'
Requirements
- PHP >= 5.6.*
- PHP Redis extension installed (if you want to track hits over time)
- Log files for us to process in realtime
Getting pesky /wp-admin requests?
Check if your vhost supports Wordpress in realtime and if not, respond blocking the IP for a length of time you dictate.