Skip to content

Commit

Permalink
update inc/wpsetup.inc and tools/nvwp.sh
Browse files Browse the repository at this point in the history
block readme.txt and changelog.txt files by default too
  • Loading branch information
centminmod committed Jan 7, 2016
1 parent 9f5d7b9 commit 61db75f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/wpsetup.inc
Expand Up @@ -812,7 +812,7 @@ location ~* (w00tw00t) {
return 444;
}

location ~* /(\.|wp-config\.php|wp-config\.txt|readme\.html|license\.txt) { deny all; }
location ~* /(\.|wp-config\.php|wp-config\.txt|changelog\.txt|readme\.txt|readme\.html|license\.txt) { deny all; }
EEF

# WP super cache
Expand Down
2 changes: 1 addition & 1 deletion tools/nvwp.sh
Expand Up @@ -804,7 +804,7 @@ location ~* (w00tw00t) {
return 444;
}
location ~* /(\.|wp-config\.php|wp-config\.txt|readme\.html|license\.txt) { deny all; }
location ~* /(\.|wp-config\.php|wp-config\.txt|changelog\.txt|readme\.txt|readme\.html|license\.txt) { deny all; }
EEF

cat > "/usr/local/nginx/conf/wpsupercache_${vhostname}.conf" <<EFF
Expand Down

0 comments on commit 61db75f

Please sign in to comment.