Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CnChunfeng
/
ichunt_lua_waf
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5513fc82
authored
Dec 28, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加google验证条状
parent
36c2c7d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
redirect.lua
waf.lua
redirect.lua
View file @
5513fc82
...
...
@@ -7,7 +7,7 @@ local _ReM = {}
------跳转到google验证页面
function
_ReM
.
checkgoogle
()
function
_ReM
.
checkgoogle
(
red
)
source_url
=
ngx
.
encode_base64
(
ngx
.
var
.
scheme
..
'://'
..
ngx
.
var
.
host
..
':'
..
ngx
.
var
.
server_port
..
ngx
.
var
.
request_uri
)
dest
=
'http://passport.ichunt.com/static/login.html'
..
'?continue='
..
source_url
...
...
waf.lua
View file @
5513fc82
...
...
@@ -134,7 +134,7 @@ if tonumber(ngx.var.server_name_id) == 1 and checkuri ~= nil and red:sismember
--如果超过次数就跳转至google验证页面,并且带上网址
if
tonumber
(
red
:
get
(
checkuriip
))
>
checkuricount
then
redirect
.
checkgoogle
()
redirect
.
checkgoogle
(
red
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment