mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2026-04-28 03:40:09 +00:00
Readme File Updates
This commit is contained in:
parent
9574a59560
commit
d6a288a640
4 changed files with 474 additions and 69 deletions
|
|
@ -1,31 +1,57 @@
|
|||
# Fail2Ban Blacklist for Repeat Error 444 and 403 Offenders of Nginx (action.d)
|
||||
#### also includes wp-login attack filter using [nginx-limit-req] - see lower down
|
||||
|
||||
### Author: Mitchell Krog <mitchellkrog@gmail.com>
|
||||
## Help Support This Project
|
||||
|
||||
[](https://paypal.me/mitchellkrog/) or [](https://paypal.me/mitchellkrog/)
|
||||
|
||||
************************************************
|
||||
### Version: 1.1
|
||||
|
||||
# Add on for Nginx Ultimate Bad Bot, User-Agent and Spam Referrer Blocker
|
||||
GitHub: https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker
|
||||
|
||||
[](https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker)
|
||||
|
||||
##### Tested On: Fail2Ban 0.9.3
|
||||
##### Server: Ubuntu 16.04
|
||||
##### Firewall: IPTables
|
||||
************************************************
|
||||
- Created by: https://github.com/mitchellkrogza for use on Nginx Web Server https://www.nginx.com/
|
||||
- Copyright Mitchell Krog <mitchellkrog@gmail.com>
|
||||
|
||||
Not Using Nginx? See the [](https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker)
|
||||
|
||||
************************************************
|
||||
### Update Notification System - Stay up to date on New Builds and Major Feature Changes
|
||||
|
||||
It is important to please <a href="https://groups.google.com/forum/#!forum/nginx-ultimate-bad-bot-blocker">subscribe your email address to the mailing list</a> or <a href="mailto:nginx-ultimate-bad-bot-blocker+subscribe@googlegroups.com">simply send a blank email here</a> to subscribe.
|
||||
|
||||
Please make sure you are subscribed to notifications to be notified when the blocker is updated and also to be notified when any important or mission critical (potentially breaking) changes take place.
|
||||
|
||||
##### Also follow me on twitter @ubuntu101za for update notifications
|
||||
|
||||
<a href='https://twitter.com/ubuntu101za'><img src='https://img.shields.io/twitter/follow/ubuntu101za.svg?style=social&label=Follow' alt='Follow @ubuntu101za'></a>
|
||||
************************************************
|
||||
- Tested On: Fail2Ban 0.9.3
|
||||
- Server: Ubuntu 16.04.2
|
||||
- Firewall: IPTables
|
||||
************************************************
|
||||
### Dependancies:
|
||||
#####requires nginxrepeatoffender.conf in /etc/fail2ban/filter.d folder
|
||||
#####requires nginxrepeatoffender.conf in /etc/fail2ban/action.d folder
|
||||
#####requires jail settings called [nginxrepeatoffender]
|
||||
#####requires nginx.repeatoffender file in /etc/fail2ban
|
||||
|
||||
- requires nginxrepeatoffender.conf in /etc/fail2ban/filter.d folder
|
||||
- requires nginxrepeatoffender.conf in /etc/fail2ban/action.d folder
|
||||
- requires jail settings called [nginxrepeatoffender]
|
||||
- requires nginx.repeatoffender file in /etc/fail2ban
|
||||
|
||||
`create with sudo touch /etc/fail2ban/nginx.repeatoffender`
|
||||
|
||||
`chmod +x /etc/fail2ban/nginx.repeatoffender`
|
||||
|
||||
************************************************
|
||||
#### Drawbacks:
|
||||
|
||||
Only works with IPTables
|
||||
|
||||
|
||||
************************************************
|
||||
#### Based on:
|
||||
|
||||
The Recidive Jail from Fail2Ban
|
||||
|
||||
This custom filter and action for Fail2Ban will monitor your Nginx logs and perma-ban
|
||||
|
|
@ -51,7 +77,9 @@ findtime = 604800 ; 1 week
|
|||
maxretry = 20
|
||||
```
|
||||
|
||||
************************************************
|
||||
# Blocking wp-login.php attacks on Wordpress Sites
|
||||
|
||||
See the included /filter.d/nginx-limit-req.conf jail and filter for detecting and blocking wp-login attacks
|
||||
The original /filter.d/nginx-limit-req.conf file from Fail2Ban is included including a /filter.d/nginx-limit-req.local file with the settings you need to detect and block wp-logins.
|
||||
An example of the jail settings for your jail.local file is included in the jail.local sample.
|
||||
|
|
@ -59,9 +87,96 @@ This works great at picking up wp-login attacks.
|
|||
Be sure to add the rate limiting zone to your nginx.conf as per instructions in /filter.d/nginx-limit-req.local
|
||||
|
||||
|
||||
### If this helped you [You can buy me a beer](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BKF9XT6WHATLG):beer:
|
||||
************************************************
|
||||
## CHECK FOR FREE IF YOUR WEB SITE IS COMPROMISED OR BLACKLISTED
|
||||
|
||||
## Update Notification System
|
||||
Please subscribe your email address to the mailing list at **https://groups.google.com/forum/#!forum/nginx-ultimate-bad-bot-blocker**
|
||||
or simply send a blank email to **nginx-ultimate-bad-bot-blocker+subscribe@googlegroups.com** to subscribe.
|
||||
Please make sure you are subscribed to notifications to be notified when the blocker is updated and also to be notified when any important or mission critical changes take place.
|
||||
<a href="https://www.gravityscan.com/" target="_blank"><img src="https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/blob/master/.assets/gravity-scan-by-wordfence.png" alt="Check if your web site is blacklisted, hacked or compromised using the awesome Free GravityScan tool"/></a>
|
||||
|
||||
************************************************
|
||||
# HAS YOUR WEB SITE BEEN HACKED?
|
||||
|
||||
[](mailto:mitchellkrog@gmail.com) to help you clean up and secure your web site.
|
||||
|
||||
************************************************
|
||||
### SOME OTHER AWESOME FREE PROJECTS
|
||||
|
||||
- https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker
|
||||
- https://github.com/mitchellkrogza/Badd-Boyz-Hosts
|
||||
- https://github.com/mitchellkrogza/Stop.Google.Analytics.Ghost.Spam.HOWTO
|
||||
- https://github.com/mitchellkrogza/The-Big-List-of-Hacked-Malware-Web-Sites
|
||||
- https://github.com/mitchellkrogza/fail2ban-useful-scripts
|
||||
- https://github.com/mitchellkrogza/linux-server-administration-scripts
|
||||
- https://github.com/mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration
|
||||
- https://github.com/mitchellkrogza/Travis-CI-for-Apache-For-Testing-Apache-and-PHP-Configurations
|
||||
- https://github.com/mitchellkrogza/Fail2Ban-Blacklist-JAIL-for-Repeat-Offenders-with-Perma-Extended-Banning
|
||||
- https://github.com/funilrys/funceble
|
||||
|
||||
************************************************
|
||||
### ALSO CHECKOUT THE NEW BIG LIST OF HACKED MALWARE & WORDPRESS WEB SITES
|
||||
|
||||
This repository contains a list of all web sites I come across that are hacked with malware.
|
||||
Most site owners are unaware their sites have been hacked and are being used to plant malware.
|
||||
|
||||
Check it out at: https://github.com/mitchellkrogza/The-Big-List-of-Hacked-Malware-Web-Sites
|
||||
|
||||
************************************************
|
||||
### INTO PHOTOGRAPHY?
|
||||
|
||||
Come drop by and visit me at https://mitchellkrog.com or <a href='https://twitter.com/MitchellKrog'><img src='https://img.shields.io/twitter/follow/MitchellKrog.svg?style=social&label=Follow' alt='Follow @MitchellKrog'></a>
|
||||
|
||||
************************************************
|
||||
### ACKNOWLEDGMENTS & CONTRIBUTORS:
|
||||
|
||||
Many Thanks to those contributing to this project.
|
||||
|
||||
Many parts of the generator scripts and code running behind this project have been adapted from snippets from hundreds of sources.
|
||||
In fact it is so hard to mention everyone but here are a few key people whose little snippets of code have helped me introduce new features all the time. Show them some love and check out some of their projects too.
|
||||
|
||||
- Stuart Cardall - https://github.com/itoffshore (Install, Update and Setup Scripts & Alpine Linux Package Maintainer)
|
||||
- Nissar Chababy - https://github.com/funilrys/funceble (Excellent script for checking ACTIVE, INACTIVE and EXPIRED Domain Names)
|
||||
- Marius Voila https://github.com/mariusv
|
||||
- Cătălin Mariș https://github.com/alrra
|
||||
- deformhead https://github.com/deformhead
|
||||
- bluedragonz https://github.com/bluedragonz
|
||||
- Alexander https://github.com/shoonois
|
||||
- Steven Black https://github.com/StevenBlack
|
||||
- Fail2Ban - https://github.com/fail2ban
|
||||
- Stevie-Ray Hartog https://github.com/Stevie-Ray
|
||||
- Sir Athos from StackOverFlow - http://stackoverflow.com/users/2245910/sir-athos (help with Travis Build Tagging and Committing)
|
||||
- StackOverflow - http://stackoverflow.com/ (bash scripts from hundreds of questions and answers)
|
||||
- SuperUser - http://superuser.com/ (snippets from various questions and answers)
|
||||
|
||||
If you believe your name should be here, drop me a line.
|
||||
|
||||
************************************************
|
||||
### Writing Code like this takes lots of time !!
|
||||
|
||||
Thousand of hours of programming and testing have gone into this project, show some love
|
||||
|
||||
[](https://paypal.me/mitchellkrog/) or [](https://paypal.me/mitchellkrog/)
|
||||
|
||||
<img src="https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/blob/master/.assets/zuko.png"/>
|
||||
|
||||
************************************************
|
||||
# MIT License
|
||||
|
||||
## Copyright (c) 2017 Mitchell Krog - mitchellkrog@gmail.com
|
||||
## https://github.com/mitchellkrogza
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue