webhook.ts

webhook.ts

基本信息

  • 类型: 工具库
  • 路径: src/lib/webhook.ts

功能描述

A10: Validates that a URL does not point to private/internal IP ranges. Blocks: 127.0.0.0/8, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16 Also blocks localhost and common internal hostnames.

导出内容

  • <code>WEBHOOK_PLACEHOLDERS</code> - 常量
  • <code>SLACKPRESETPAYLOAD</code> - 常量
  • <code>isPrivateUrl</code> - 命名导出

依赖导入

  • @/lib/db
  • @prisma/client

详细说明

详见代码实现

← 返回目录