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 expected output #406

Closed true2thepen closed 3 years ago

true2thepen commented 3 years ago

Describe the bug

Does not work unless added includes are moved to top of server block of vhost files.

To Reproduce

Follow install as described for automatic install

Expected behavior

curl should return error(52) returns Http error 403 instead.

Server (please complete the following information):

nginx version: nginx/1.14.0 (Ubuntu)

Once the includes are moved to top of vhost output from curl returns error 52 as expected. When the includes are at the bottom of the vhost file, they are seemingly ignored as the output returned is the output from WordPress 5.5.3.

mitchellkrogza commented 3 years ago

The includes must always precede ANY location blocks.