https://github.com/aran112000/nope-php
Nope! A lightweight tool for monitoring your log files and dynamically blocking nuisance or malicious IPs based on easy to define, dynamic rules which you control
https://github.com/aran112000/nope-php
anti-bot attack-prevention ban-hosts ban-management ips linux log-analyzer monitoring php php-cli rate-limiting security
Last synced: 5 days ago
JSON representation
Nope! A lightweight tool for monitoring your log files and dynamically blocking nuisance or malicious IPs based on easy to define, dynamic rules which you control
- Host: GitHub
- URL: https://github.com/aran112000/nope-php
- Owner: aran112000
- License: mit
- Created: 2020-05-07T18:19:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-17T16:20:19.000Z (almost 5 years ago)
- Last Synced: 2024-05-01T12:33:35.840Z (12 months ago)
- Topics: anti-bot, attack-prevention, ban-hosts, ban-management, ips, linux, log-analyzer, monitoring, php, php-cli, rate-limiting, security
- Language: PHP
- Homepage:
- Size: 102 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nope!
[](https://app.codacy.com/manual/cdtreeks/nope-php?utm_source=github.com&utm_medium=referral&utm_content=aran112000/nope-php&utm_campaign=Badge_Grade_Settings)
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:
```console
composer require aran112000/nope-php
```## Current expected Nginx access log format
```console
'[$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.