mitchellkrogza / nginx-ultimate-bad-bot-blocker

Nginx Block Bad Bots, Spam Referrer Blocker, Vulnerability Scanners, User-Agents, Malware, Adware, Ransomware, Malicious Sites, with anti-DDOS, Wordpress Theme Detector Blocking and Fail2Ban Jail for Repeat Offenders
Other
3.82k stars 472 forks source link

[INSTALLATION] testing - not the expected outputs #403

Open lls-hcr opened 3 years ago

lls-hcr commented 3 years ago

Hi, I followed the step-by-step instruction to install the nginx-ultimate-bad-bot-blocker on a raspberry pi (buster). At the testing (step 10), when entering the 'curl' commands, I get this type of output

HTTP/1.1 301 Moved Permanently Server: nginx Date: Wed, 21 Oct 2020 14:23:25 GMT Content-Type: text/html Content-Length: 178 Connection: keep-alive Location: https://mydomain.com/

None of the commands will produce an error message. What did I do wrong?

mitchellkrogza commented 3 years ago

You should be testing your https site, Nginx is telling visitors to redirect from http to https. This is your Nginx config and nothing to do with the blocker. I suggest you also add the blocker code to BOTH the http and https server blocks which stops nuisance bots even getting told to redirect.