Skip to content

Commit 4721059

Browse files
feat: more effectively blocking site scanners
1 parent f454d0a commit 4721059

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nginx/filesystem/etc/nginx/conf.d/nginx.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ server {
4848
try_files /index.html =404;
4949
}
5050

51+
location ~ ^/(background|user/auth|user/login(?:/desktop)?|vm-admin|twitch-bot(?:/config)?|imdb-search) {
52+
root /usr/share/nginx/html;
53+
try_files $uri $uri/ /index.html =404;
54+
}
55+
5156
location / {
5257
root /usr/share/nginx/html;
5358
try_files $uri $uri/ =404;

0 commit comments

Comments
 (0)