aran112000/nope-php

A light-weight tool for parsing log files in real-time and blocking requests that match certain pattern you define

dev-master 2020-05-17 16:20 UTC

This package is auto-updated.

Last update: 2025-04-18 03:10:50 UTC


README

Codacy Badge

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.