Comments (5)
I moved
# Bad Bot Blocker
include /etc/nginx/bots.d/blockbots.conf;
include /etc/nginx/bots.d/ddos.conf;
inside server block { ... }
and the error was gone!
Thank you!
from nginx-ultimate-bad-bot-blocker.
@makorne that's a very old version of Nginx. This has only been developed and tested on Nginx 1.10.0 > 1.10.3 there is probably missing modules and other changes your are missing in your version of Nginx.
from nginx-ultimate-bad-bot-blocker.
nginx: [emerg] "if" directive is not allowed here in /etc/nginx/bots.d/blockbots.conf:22
nginx: configuration file /etc/nginx/nginx.conf test failed
nginx -v
nginx version: nginx/1.12.1
from nginx-ultimate-bad-bot-blocker.
Please paste your vhost config(s) here and also your nginx.conf. I have people using it from 1.10 > 1.13 of Nginx
from nginx-ultimate-bad-bot-blocker.
Perfect glad you got it sorted. You should use the install, setup and update scripts as they work like a charm and @itoffshore Stuart Cardall did some really excellent work on those. Happy bot and spam blocking and let me know how it goes. Remember to monitor your logs as per my examples on the main README.md file.
from nginx-ultimate-bad-bot-blocker.
Related Issues (20)
- https://www.letsencrypt.org (CertBot renewal is being blocked 444) HOT 3
- [User-Agent] Axios is a popular http library used in Nodejs HOT 1
- Integration with abuseipdb.com HOT 3
- [INSTALLATION] integrated w/ engintron, but does not work
- Updated BingBot IP Ranges HOT 7
- [User-Agent] BrandVerity HOT 1
- [User-Agent] AwarioBot HOT 3
- [User-Agent] Bytespider, Bytedance didn't get to block after install bad bot blocker
- linkfluence HOT 4
- AwarioBot Addition HOT 1
- [INSTALLATION] nginx -t return warn HOT 1
- Whitelist Yahoo HOT 2
- [User-Agent] InternetMeasurement
- [BUG] Nginx logs shows permissions denied error to /etc/nginx/conf.d/globalblacklist.conf HOT 1
- New "super rate limiting" zone (1r/m) in addition of the current one (2r/s) HOT 14
- blacklist-ips.conf does not do anything for me
- [User-Agent] GeedoProductSearch
- [User-Agent] Information Security Team InfraSec Scanner
- [INSTALLATION] Fail2ban/crowdsec and their interaction with this project, worth it? HOT 1
- [BUG] (Please add a way to uninstall completely) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx-ultimate-bad-bot-blocker.