Initial commit: web_hghl_server

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 16:28:14 +08:00
co-authored by Claude Opus 4.7
commit 65fca60622
653 changed files with 135901 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package ipblacklist
import (
"errors"
"github.com/gin-gonic/gin"
"net/http"
"videoweb/web/service/srv_ipblack"
)
func IpBlackListMiddleware(ctx *gin.Context) {
ip := ctx.ClientIP()
if srv_ipblack.CheckIp(ip) {
ctx.AbortWithStatusJSON(http.StatusUnauthorized, errors.New("login limit"))
return
}
}