一款社区驱动的免费、高性能、高扩展顶级Web应用和API安全防护产品
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

15 lines
260 B

--[[
规则名称: http重定向https
过滤阶段: 请求阶段
危险等级: 低危
规则描述: 将不安全的http请求重定向到https
--]]
if waf.scheme == "http" then
return waf.redirect("https://" .. waf.host .. waf.reqUri)
end
return false