The Block Common Exploits switch on a proxy host sounds like a small web application firewall. It isn’t, and once you’ve read what it does you’ll know exactly when to leave it on and when it explains a mysterious 403.
When the switch is on, NPM adds one line to the server block of that host:
include conf.d/include/block-exploits.conf;
That file is a set of nginx if rules that return 403 when the query string or user agent matches a pattern. There are groups for SQL injection (union.*select, concat(), file injection, script tags and things like base64_decode( in the URL, spam words, and a list of old download tools as user agents. It’s cheap, it stops lazy scanners, and for most apps I’d switch it on.
The caveat is in the file injection rules. One of them blocks any parameter whose value starts with an unencoded http://, another one any value that starts with a slash and a path. So a perfectly normal request like
https://files.example.com/browse?dir=/photos/2026
gets a 403 from NPM before your app ever sees it. Apps that pass folder paths or plain URLs in the query string, like a file browser, can trip over this. If one app gives 403 on certain pages only, turn the switch off for that host and try again. The access log of the host shows the 403 with the full request, so you can see which URL it was.
And don’t count it as real protection. Regexes on the query string miss a lot, and nothing here looks at the request body. Think of it as a doormat. Keep your apps patched and your login pages behind access lists or a VPN.
Further reading: block-exploits.conf in the Nginx Proxy Manager repository, Nginx Proxy Manager documentation
Going deeper: Guide: fix a 502 Bad Gateway in Nginx Proxy Manager, with a checklist that finds the cause