Files
pretix_cgo/src/pretix/presale
Ananya 2066471086 Fix #1907 – Obfuscate contact email addresses in public HTML (#5477)
* Include nix development enviornment

* Obfuscate contact email addresses in shop HTML and deanonymize via JavaScript

This change addresses #1907: "hide contact e-mail address in source code
of a shop".

- Contact email addresses rendered in public-facing templates are now
obfuscated in the HTML source (e.g., replacing "@" with "[at]" and "."
with "[dot]").
- A new JavaScript file is included in the relevant templates to
automatically rewrite and restore the email address for users after the
page loads.
- This approach helps protect email addresses from basic harvesting bots
and reduces spam, while keeping them accessible and user-friendly for
human visitors.
- The obfuscation and deanonymization logic is only applied to web
templates, not to emails sent via pretix.

This implementation follows the recommendations discussed in #1907,
using a standardized, maintainable approach that’s compatible with
pretix's asset pipeline and template structure.

* Undo nix development environment for merge into main

* convert complete mailto-link to HTML entities

* remove gitignore noise

* Update .gitignore

* fix gitignore noise

* Update .gitignore

---------

Co-authored-by: Richard Schreiber <schreiber@rami.io>
2026-02-27 08:50:33 +01:00
..
2025-10-10 15:32:46 +02:00
2025-10-10 15:32:46 +02:00
2025-10-10 15:32:46 +02:00
2025-10-10 15:32:46 +02:00
2026-01-30 10:43:02 +01:00
2025-10-10 15:32:46 +02:00
2025-10-10 15:32:46 +02:00
2025-10-10 15:32:46 +02:00
2025-10-10 15:32:46 +02:00
2025-10-10 15:32:46 +02:00