diff --git a/rules/force-https.lua b/rules/force-https.lua new file mode 100644 index 0000000..4ae32d9 --- /dev/null +++ b/rules/force-https.lua @@ -0,0 +1,15 @@ +--[[ +规则名称: http重定向https + +过滤阶段: 请求阶段 + +危险等级: 低危 + +规则描述: 将不安全的http请求重定向到https +--]] + + +if ngx.var.scheme == "http" then + return ngx.redirect("https://" .. ngx.var.host) +end +return false \ No newline at end of file diff --git a/rules/SQLi.lua b/rules/sqli-more.lua similarity index 100% rename from rules/SQLi.lua rename to rules/sqli-more.lua