$30 GRAYBYTE WORDPRESS FILE MANAGER $86

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/imunify360-webshield/nginx/lua/

HOME
Current File : /opt/imunify360-webshield/nginx/lua//captcha.lua
local template = require 'resty.template'
local cookie = require 'resty.cookie'

local function set_captcha_cookie()
    local cookie_obj, err = cookie:new()
    if not cookie_obj then
        ngx.log(ngx.ERR, "Failed to init cookie: ", err)
        return
    end

    local current_timestamp = os.time()
    local offset = 3600              -- 1 hour
    local expiration_date = os.date(
        "!%a, %d-%b-%y %H:%M:%S GMT", current_timestamp + offset)

    local ok, err = cookie_obj:set({
        key = "cl-bypass-cache",
        value = "yes",
        domain = ngx.var.host,
        samesite = "Lax",
        httponly = true,
        path = "/",
        expires = expiration_date
    })
    if not ok then
        ngx.log(ngx.ERR, "Could not set cookie: ", err)
    end
end

local default_site_key = "6LfwghwUAAAAAAYrFATHtss0Xe_bC7I6OWE_ayK4"
local custom_site_key = ngx.var.wscaptcha_site_key
local captcha_site_key = custom_site_key or default_site_key
local vars = {
    invisible=ngx.var.invisible_captcha,
    captcha_key=captcha_site_key
}
set_captcha_cookie()
template.render('index.html', vars, 'captcha')

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
26 Nov 2025 10.43 PM
root / root
0755
accesscheck.lua
3.63 KB
26 Nov 2025 8.52 PM
root / root
0644
captcha.lua
1.094 KB
26 Nov 2025 8.52 PM
root / root
0644
captchacheck.lua
4.592 KB
26 Nov 2025 8.52 PM
root / root
0644
init.lua
0.591 KB
26 Nov 2025 8.52 PM
root / root
0644
reqrouter.lua
10.253 KB
26 Nov 2025 8.52 PM
root / root
0644
splashscreen.lua
2.933 KB
26 Nov 2025 8.52 PM
root / root
0644
ssl.lua
1.428 KB
26 Nov 2025 8.52 PM
root / root
0644
wsidchk.lua
3.84 KB
26 Nov 2025 8.52 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF