Skip to content

Instantly share code, notes, and snippets.

@arooni
Created May 15, 2018 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arooni/0b6a75bba22a53cd9989e4a7009b143b to your computer and use it in GitHub Desktop.
Save arooni/0b6a75bba22a53cd9989e4a7009b143b to your computer and use it in GitHub Desktop.
19 if ( $allow_address = 0 ) {
20 set $check "A";
21 }
22
23 if ( $request_uri ~ ^/wp-login\.php ) {
24 set $check "${check}B";
25 }
26
27 if ( $check = "AB" ) {
28 return 403;
29 }
30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment