Skip to content

Commit 4e6606e

Browse files
authored
Merge pull request #148 from psaux-it/protect_runtime
deny access to NPP runtime files
2 parents 8e89a80 + 38eacc8 commit 4e6606e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

nginx/default.conf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ server {
157157
# End
158158
#####
159159

160+
# Protect NPP runtime files
161+
#################
162+
location ^~ /wp-content/uploads/nginx-cache-purge-preload-runtime/ {
163+
deny all;
164+
access_log off;
165+
log_not_found off;
166+
}
167+
160168
# WP Security Settings (Enable on Production)
161169
#################
162170
# Deny access to hidden files and directories (except .well-known)
@@ -253,4 +261,4 @@ server {
253261
fastcgi_cache_purge NPP "$scheme$request_method$host$1";
254262
}
255263
#################
256-
}
264+
}

0 commit comments

Comments
 (0)