this post was submitted on 12 Sep 2024
1 points (100.0% liked)

nginx

4 readers
1 users here now

The nginx community on Reddit. Reddit gives you the best of the internet in one place.

founded 1 year ago
MODERATORS
 
The original post: /r/nginx by /u/neitcho on 2024-09-12 20:00:14.

I can't get my head around why nginx-ultimate-bad-bot-blocker is not working on my site.

sudo nginx -t gives me

nginx: [warn] duplicate network "138.199.57.151", value: "0", old value: "1" in /etc/nginx/conf.d/globalblacklist.conf:18873

nginx: [warn] duplicate network "143.244.38.129", value: "0", old value: "1" in /etc/nginx/conf.d/globalblacklist.conf:18889

nginx: [warn] duplicate network "195.181.163.194", value: "0", old value: "1" in /etc/nginx/conf.d/globalblacklist.conf:18984

nginx: [warn] duplicate network "5.188.120.15", value: "0", old value: "1" in /etc/nginx/conf.d/globalblacklist.conf:19111

nginx: [warn] duplicate network "89.187.173.66", value: "0", old value: "1" in /etc/nginx/conf.d/globalblacklist.conf:19158

nginx: [warn] conflicting server name "" on 0.0.0.0:80, ignored

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok

nginx: configuration file /etc/nginx/nginx.conf test is successful

Code has been a added in virtual host

##

# Nginx Bad Bot Blocker Includes

# REPO: https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker

##

include /etc/nginx/bots.d/ddos.conf;

include /etc/nginx/bots.d/blockbots.conf;

And I've added my own IP to blacklist-ips.conf but can still access the website from the browser.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here