Skip to content

caddy平台下,使用Cloudflare API 屏蔽请求次数多的IP

Notifications You must be signed in to change notification settings

lixworth/CFBlockIP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

CFBlockIP

caddy平台下,使用Cloudflare API 屏蔽请求次数多的IP

使用方法

  • Caddy需要安装realIP插件
  • 开启Caddy的log log / /usr/local/caddy/log/web.log "{remote} - {user} [{when}] {when_unix} \"{method} {uri} {proto}\" {status} {size} \"{>Referer}\" \"{>User-Agent}\""
  • 自定义脚本
  • 添加定时任务(比如可以使用宝塔面板的定时任务)

参考

https://www.moeelf.com/archives/14.html

About

caddy平台下,使用Cloudflare API 屏蔽请求次数多的IP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages