gpt4 book ai didi

svn - 如何防止 checkout SVN 中的某些目录?

转载 作者:行者123 更新时间:2023-12-04 15:27:18 24 4
gpt4 key购买 nike

我的 SVN 存储库中有一个非常标准的目录结构:

/project1
/trunk
/branches
/branch1
/branch2
...
/tags
/project2
/trunk
/branches
...

我使用 Apache 和 mod_dav_svn 来托管存储库。

我想防止人们不小心 check out 一个项目的根目录或整个存储库的根目录,这会不必要地下载许多、许多千兆字节的文件,并且通常会导致各种问题。

最佳答案

您可以使用 mod_dontdothat为了这。见 docs :

Specifically, it's designed to keep users from doing things that are particularly hard on the server, like checking out the root of the tree, or the tags or branches directories. It works by sticking an input filter in front of all REPORT requests and looking for dangerous types of requests. If it finds any, it returns a 403 Forbidden error.

关于svn - 如何防止 checkout SVN 中的某些目录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4213579/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com