Nginx config to filter out requests and User-Agents that contain LogJam jndi strings.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( $http_user_agent ~* "\${jndi:" ) { | |
return 400; | |
} | |
if ( $request_uri ~* "(\$|%24)({|%7b)(j|%6a)(n|%6e)(d|%64)(i|%69)(:|%3a)" ) { | |
return 400; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment