cloudflare turnstile

pull/104/head
有安科技 2024-12-04 20:08:56 +08:00
parent 68c2f3717d
commit 41a4eb1b7d
4 changed files with 16 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
6.1.0
6.2.0

View File

@ -0,0 +1,15 @@
--[[
Rule name: Turnstile challenge
Filtering stage: Request phase
Threat level: Low
Rule description: Use cloudflare turnstile challenge to deny robot, you should get free cloudflare turnstile sitekey and secret first, then set the values bellow.
--]]
local sitekey = ""
local secret = ""
if sitekey ~= "" and secret ~= "" then
return waf.checkTurnstile(waf, sitekey, secret, 600, 18000)
end
return false