email obfuscation #51

Closed
opened 2024-01-24 12:17:35 +01:00 by Anri · 4 comments
Owner

very simple counter measure who will only trap very very simple bot

  • adding a metadata (like the one for maths and mermaid) who detect an email
  • replace the '@' in the email with something like <span class="at">(at)</span>
  • then if the metadata email is true, add this script at the bottom of the page: document.getElementById('at').textContent = '@'; (this is for ids and not classes but you got the idea)

other example: user (at) domain (dot) ext

very simple counter measure who will only trap very very simple bot - adding a metadata (like the one for maths and mermaid) who detect an email - replace the '@' in the email with something like `<span class="at">(at)</span>` - then if the metadata `email` is true, add this script at the bottom of the page: `document.getElementById('at').textContent = '@';` (this is for ids and not classes but you got the idea) other example: user (at) domain (dot) ext
Anri added the
enhancement
label 2024-01-25 17:14:36 +01:00
Anri referenced this issue from a commit 2024-05-03 12:49:54 +02:00
Author
Owner

done in ed404bacca
will never work in /c and its intended as we only hide in markdown files, and /c are builded with the metadata header in yml

done in ed404baccab6cda61a4139cb3420d57347dedd58 will never work in /c and its intended as we only hide in markdown files, and /c are builded with the metadata header in yml
Anri closed this issue 2024-05-29 21:05:44 +02:00
Author
Owner

bece8ef147 introduces a regression when [text](mailto:mail) where used, now the text is preserved

bece8ef1478bce882e72913fa2fdb26f2f48fa7f introduces a regression when `[text](mailto:mail)` where used, now the `text` is preserved
Author
Owner

current limitation: when no js available, data stored is not showed, as the reconstruction happen in js

current limitation: when no js available, data stored is not showed, as the reconstruction happen in js
Author
Owner

also, if text contains a quote ' it will break

also, if text contains a quote `'` it will break
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Anri/mylloon.fr#51
No description provided.