Skip to content

Instantly share code, notes, and snippets.

@AysadKozanoglu
Last active December 17, 2021 11:49
Show Gist options
  • Save AysadKozanoglu/2233f0e3bcec2d342ab47c1f021e3fcc to your computer and use it in GitHub Desktop.
Save AysadKozanoglu/2233f0e3bcec2d342ab47c1f021e3fcc to your computer and use it in GitHub Desktop.
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