diff options
author | techknowlogick <techknowlogick@gitea.com> | 2024-09-09 17:05:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 17:05:16 -0400 |
commit | f183783baa67e7da0b0ae0909d3d6cb3045c0501 (patch) | |
tree | f8a232899d17c11dd0cb9ad132a552329e1804e5 /custom | |
parent | a323a82ec4bde6ae39b97200439829bf67c0d31e (diff) | |
download | gitea-f183783baa67e7da0b0ae0909d3d6cb3045c0501.tar.gz gitea-f183783baa67e7da0b0ae0909d3d6cb3045c0501.zip |
Save initial signup information for users to aid in spam prevention (#31852)
This will allow instance admins to view signup pattern patterns for
public instances. It is modelled after discourse, mastodon, and
MediaWiki's approaches.
Note: This has privacy implications, but as the above-stated open-source
projects take this approach, especially MediaWiki, which I have no doubt
looked into this thoroughly, it is likely okay for us, too. However, I
would be appreciative of any feedback on how this could be improved.
---------
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'custom')
-rw-r--r-- | custom/conf/app.example.ini | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index 0f70a1a3d0..7009df54db 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -507,6 +507,9 @@ INTERNAL_TOKEN = ;; stemming from cached/logged plain-text API tokens. ;; In future releases, this will become the default behavior ;DISABLE_QUERY_AUTH_TOKEN = false +;; +;; On user registration, record the IP address and user agent of the user to help identify potential abuse. +;; RECORD_USER_SIGNUP_METADATA = false ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |