1.2.3 • Published 2 months ago

koa-secure-check v1.2.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

KoaJS的爬虫屏蔽检查插件和访问量统计插件带有UI

使用方法

const initKoaSecureCheck = require("koa-secure-check")
initKoaSecureCheck({
  //首页文件路径
  index: path.join(process.cwd(), "/public/index.html"),
  //统计以下目录的所有文件
  dirpath: fishPath,
  //放过国家
  country: ["US"],
  //放过语言
  lang: "en",
  //后台访问密码
  password: "admin2",
  //爬虫屏蔽路径
  redirect:"https://google.com",
  //前台接口路径
  router:"/check_ip",
  //模式 0.走WS验证(有的浏览器可能不支持) 1.走POST验证 建议设置1
  mod:0
}, (app) => {
  //正常初始化router和其他koa正常操作
}).listen(port);
1.2.3

2 months ago

1.2.0

8 months ago

1.1.9

8 months ago

1.1.8

8 months ago

1.2.2

8 months ago

1.2.1

8 months ago

1.1.7

9 months ago

1.1.6

9 months ago

1.1.5

9 months ago

1.1.4

9 months ago

1.1.3

9 months ago

1.1.2

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago