[FEATURE] 非转换模式预览的文件不在黑白名单的管控内

Author: obesepigCreated May 28, 2026Updated Jul 8, 2026
Labelsstatus/needs-infotype/featurepriority/p2

Background / 背景

kkFileView Version / kkFileView 版本 4.4.0

Deployment Mode / 部署方式 docker

图片、pdf文档这些非转换模式预览的文件不会经过服务器拉取,所以设置了黑白名单或者服务器本身限制了公网访问都无法限制站外文件的预览加载,导致一些违法违规内容可以随意在站内url下呈现。

Proposal / 建议方案

希望可以让非转换模式预览的文件也能受黑白名单的管控 或者强制全部类型的文件都走转换模式进行预览

Use Case / 使用场景

Scenario 1: kkfileview配置 -e KK_TRUST_HOST=abc.cn https://abc.cn/preview/onlinePreview?url=https://abc.cn/a.png 可以正常预览 https://abc.cn/preview/onlinePreview?url=https://test.cn/test.png 不可以预览

Alternatives / 备选方案

No response

Acceptance Criteria / 验收标准

Criterion 1: kkfileview配置 -e KK_TRUST_HOST=abc.cn https://abc.cn/preview/onlinePreview?url=https://abc.cn/a.png 可以正常预览 https://abc.cn/preview/onlinePreview?url=https://test.cn/test.png 不可以预览

Checklist / 提交前检查

  • I have searched existing issues and did not find a duplicate feature request. / 我已搜索现有 issue,未发现重复功能建议
  • I provided concrete use cases and expected behavior. / 我已提供具体使用场景和期望行为