Skip to content

Commit bd0e836

Browse files
feat: more effectively blocking site scanners
1 parent 598b3c9 commit bd0e836

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ server {
4343
#charset koi8-r;
4444
#access_log /var/log/nginx/host.access.log main;
4545

46+
location = / {
47+
return 404;
48+
}
49+
4650
location / {
4751
root /usr/share/nginx/html;
4852
# First attempt to serve request as file, then

0 commit comments

Comments
 (0)