From 4eb8d59b833773f86631be2a598e588fe2d913ed Mon Sep 17 00:00:00 2001 From: ibuler Date: Sat, 18 Jun 2016 15:03:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=86=E5=88=86=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- access.lua | 5 +++++ entry.lua | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 access.lua create mode 100644 entry.lua diff --git a/access.lua b/access.lua new file mode 100644 index 0000000..509701d --- /dev/null +++ b/access.lua @@ -0,0 +1,5 @@ +if cc_deny then + denyCC(cc_rate, cc_deny_seconds) +else + return +end diff --git a/entry.lua b/entry.lua new file mode 100644 index 0000000..1aedbd7 --- /dev/null +++ b/entry.lua @@ -0,0 +1,10 @@ +--------- Global default config ------- +require 'config' +--------- Local config setting -------- +cc_deny = false +cc_rate = '10/60' + +--------- Init project ---------------- +require 'init' +--------- Access control limit -------- +require ''