Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
NGINX log4J JNDI protection

put in server section of your virtual Host configuration following regex

server {

if ($request_uri ~* "jndi:*|\$\{*") {
              return 403;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment