You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

filter.go 527 B

1234567891011121314151617181920212223242526272829
  1. package routers
  2. import (
  3. "net/http"
  4. "strings"
  5. "github.com/beego/beego/context"
  6. "github.com/casbin/casvisor/util"
  7. )
  8. func TransparentStatic(ctx *context.Context) {
  9. urlPath := ctx.Request.URL.Path
  10. if strings.HasPrefix(urlPath, "/api/") {
  11. return
  12. }
  13. path := "web/build"
  14. if urlPath == "/" {
  15. path += "/index.html"
  16. } else {
  17. path += urlPath
  18. }
  19. if util.FileExist(path) {
  20. http.ServeFile(ctx.ResponseWriter, ctx.Request, path)
  21. } else {
  22. http.ServeFile(ctx.ResponseWriter, ctx.Request, "web/build/index.html")
  23. }
  24. }

Caswire是一款基于人工智能技术的开源反病毒和入侵检测系统。该系统通过深度学习和模式识别技术,能够实时识别和防御各种网络威胁,包括病毒、恶意软件以及其他安全威胁。Caswire支持动态学习和适应网络环境的变化,确保持续的安全防护。我们期望在Caswire上:1)增强其机器学习模型,以提高恶意行为的检测准确率;2)优化系统的实时响应能力,提升在高威胁环境下的表现。