aboutsummaryrefslogtreecommitdiffstats
path: root/routers/utils/utils.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2025-03-30 13:26:19 +0800
committerGitHub <noreply@github.com>2025-03-30 05:26:19 +0000
commitb59705fa3402ff3e02efb3dfbe5878bfba33306e (patch)
tree666dbc77393ef5ec06f1ac1fd864d6226755b54b /routers/utils/utils.go
parentd7a6133825942007a57c73e1f8ee112668f10283 (diff)
downloadgitea-main.tar.gz
gitea-main.zip
Add a config option to block "expensive" pages for anonymous users (#34024)HEADmain
Fix #33966 ``` ;; User must sign in to view anything. ;; It could be set to "expensive" to block anonymous users accessing some pages which consume a lot of resources, ;; for example: block anonymous AI crawlers from accessing repo code pages. ;; The "expensive" mode is experimental and subject to change. ;REQUIRE_SIGNIN_VIEW = false ```
Diffstat (limited to 'routers/utils/utils.go')
0 files changed, 0 insertions, 0 deletions