ipfs/kubo

gateway: feature request: ability to disable directory listings

Open

#9,645 建立於 2023年2月10日

在 GitHub 查看
 (6 留言) (0 反應) (1 負責人)Go (13,906 star) (2,725 fork)batch import
P3effort/hoursexp/novicehelp wantedkind/featuretopic/gateway

描述

tldr; I would like one more option to support blocking listing directory contents

Checklist

  • My issue is specific & actionable.
  • I am not suggesting a protocol enhancement.
  • I have searched on the issue tracker for my issue.

Description

https://ipfs.io/ipfs/Qmd148AbtEZKR4KCUZiNGDURTxCwSa13adLKkjdmyWPMt9 【let him redirect】 https://ipfs.io/ipfs/Qmd148AbtEZKR4KCUZiNGDURTxCwSa13adLKkjdmyWPMt9/VCG211be3c9c31.jpg 【OK】 https://ipfs.io/ipfs/QmcBpxUZMbD5iwNA8w2dj8QBWvTdAXwNDHbZ74ffqGtNHh  【OK】

Because certain scenarios have relatively strict security requirements, directory traversal caused by direct get access is considered a security issue. Therefore, it is recommended to directly redirect to the specified page when accessing indirect data resources, instead of directly using the form of directory traversal, or Add a parameter directly in the configuration file to achieve.

貢獻者指南