eternagame / eternagame.org

Website for the Eterna citizen science game
https://eternagame.org
BSD 3-Clause "New" or "Revised" License
19 stars 17 forks source link

Notify users of clicking a link in UGC that looks like a URL but links somewhere different #363

Open luxaritas opened 9 months ago

luxaritas commented 9 months ago

Describe your idea

When clicking on a link in user-generated markup, if the display text is formatted by a URL but that text does not match the underlying URL, the user should be notified of the mismatch (with the option to either cancel or continue to the link)

Motivation

Eg, if a link leads to google.com but the link text is eternagame.org, this could be used to intentionally mislead users.

Proposed Solution

We should be able to implement this via dompurify

Other Information

No response