mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat(template): add reject empty host
This commit is contained in:
parent
2af29eb80f
commit
76ea17806a
6 changed files with 7 additions and 0 deletions
7
template/block/reject-empty-host.conf
Normal file
7
template/block/reject-empty-host.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Nginx UI Template Start
|
||||
name = "Reject Empty Host"
|
||||
author = "@leic4u"
|
||||
description = { en = "Reject for unknown server_name to prevent malicious DNS, can only be used this template in default server(server_name _).", zh_CN = "拒绝空主机头,防止其他域名恶意解析,只能在 default server(server_name _) 中使用才有效。"}
|
||||
# Nginx UI Template End
|
||||
|
||||
return 500;
|
Loading…
Add table
Add a link
Reference in a new issue