Skip to content

Frontend - Add a confirmation modal when clicking on new links #627

@ValentinRegnault

Description

@ValentinRegnault

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe.
A common phishing technique is to disguise a malicious link as a legitimate one using an <a> element with a misleading href. For example:
<a href="http://malicious.com">http://safe.fr</a>
This appears to the user as a link pointing to safe.fr, while it actually redirects to malicious.com.

Describe the solution you'd like
When a user clicks on a link, display a confirmation modal showing the actual target URL (href) before redirecting.

Possible improvements:

  1. Fetch the link beforehand and, if the response status is a 3XX (redirection), display the final destination URL.
  2. Add a checkbox such as “Always trust this domain”, so that future clicks on links from the same domain bypass the confirmation step.

Describe alternatives you've considered
Marking emails that contain disguised links as spam. This can work for simple cases like
<a href="http://malicious.com">http://safe.fr</a>,
but it does not cover more advanced attacks, such as mimicking a company’s design system (e.g., fake buttons) that redirect to malicious domains.

Discovery, Documentation, Adoption, Migration Strategy
The feature is self-explanatory and should be intuitive for users, as it integrates directly into the link-clicking workflow.
Here is a quick design mockup:

Image

Do you want to work on it through a Pull Request?
Yes!

As part of a course on free and open source software, I am required to contribute to a project, and I would be happy to work on implementing this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions