Closed hong823 closed 3 years ago
Another alternative I was thinking about is to have a copy of /etc/nginx/bots.d/blockbots.conf
which overwrite return 444;
into return 403;
. But I'm not sure if that is good practice to do for a temporary fix?
blockbots.conf and the response code you choose to issue has been 100% user configurable since day 1 and has never changed. ANY modifications to blockbots.conf are NOT over-written during an update.
@hong823 blockbots.conf has been update with comments to reflect this.
@mitchellkrogza thanks for the clarification!
@mitchellkrogza I noticed some of the configurable files are not mentioned for /etc/nginx/bots.d
in the instructions, I've created #410 to include them.
Describe the bug
Currently, the bad bot blocker is responding HTTP status code 444 when it detects a bad bot. However, when nginx was hosted behind an AWS ELB it was responded with HTTP status code 502
I was debugging this with AWS and they told me that AWS ELB could not recognize HTTP status code 444 as it was a non-standard HTTP status code and responded with HTTP status code 502
The visualized flow current looks like this:
Below are one of the example configuration files in
/etc/nginx/bots.d/blockbots.conf
that return status code 444:To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect that either the response code on bad blocker would be configurable (Not sure how possible is this) or at least responded with HTTP status code 403 so that AWS ELB and interpreted it correctly and responded with HTTP status code 403 as well.
The visualized flow should looks like this: Nginx (Respond 403) -> AWS ELB (Respond 403) -> Bad Bots (Received 403)
Copy of nginx.conf
Copy of vhost / website / host .conf file
Server (please complete the following information):
Operating System:
[ ] Ubuntu
[x] Alpine
[ ] Arch Linux
[ ] Debian
[ ] CentOS
[ ] Fedora
[ ] Deepin
[ ] Windows
[ ] Other
Post output of uname -a here
Other Environments [include Version information]
[ ] Plesk
[ ] CPanel
[ ] Synology NAS
[ ] Other
Specify Other / Specific Version Information Here:
Any other applicable log / error messages that may help us to help you.
Nginx request logs
Additional information
Add any other context about the problem here.