Created
May 31, 2015 13:54
-
-
Save phith0n/06208c84d90a21300ef8 to your computer and use it in GitHub Desktop.
lua记录谷歌搜索词
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ngx.var.host == "xdsec.mhz.pw" then | |
local args = ngx.req.get_uri_args() | |
if args["q"] then | |
writefile("/home/wwwroot/fish/"..ngx.var.host..".txt", "search: " .. args["q"] .. "\n") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment