gitweb: add "e-mail privacy" feature to redact e-mail addresses
commit0996dd3d6dbcc132cf212f3420b89947fd9cc2ba
authorGeorgios Kontaxis <geko1702+commits@99rst.org>
Sun, 28 Mar 2021 23:26:03 +0000 (28 23:26 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Apr 2021 22:54:26 +0000 (8 15:54 -0700)
tree7fda788ffbffbcafd16f896fc9f77e65bed87b53
parent84d06cdc06389ae7c462434cb7b1db0980f63860
gitweb: add "e-mail privacy" feature to redact e-mail addresses

Gitweb extracts content from the Git log and makes it accessible
over HTTP. As a result, e-mail addresses found in commits are
exposed to web crawlers and they may not respect robots.txt.
This can result in unsolicited messages.

Introduce an 'email-privacy' feature which redacts e-mail addresses
from the generated HTML content. Specifically, obscure addresses
retrieved from the the author/committer and comment sections of the
Git log. The feature is off by default.

This feature does not prevent someone from downloading the
unredacted commit log, e.g., by cloning the repository, and
extracting information from it. It aims to hinder the low-
effort, bulk collection of e-mail addresses by web crawlers.

Signed-off-by: Georgios Kontaxis <geko1702+commits@99rst.org>
Acked-by: Eric Wong <e@80x24.org>
Acked-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitweb.conf.txt
gitweb/gitweb.perl