this post was submitted on 13 Jun 2026
21 points (95.7% liked)

Technology

85355 readers
4188 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] MonkderVierte@lemmy.zip 4 points 8 hours ago* (last edited 8 hours ago) (1 children)

<a target="\_blank">

About that, you should add rel="noopener" (and maybe noreferer too) there, or the linked site could inject JS in yours, a security risk for your visitors.

I have a little usercss that adds a warning picture (::after { content: "pic"; }) on _target without noopener and especially Github is bad there.

[–] ChaosMonkey@lemmy.dbzer0.com 1 points 3 hours ago (1 children)

Can you share some reference? I don't understand how some linked site could affect the site containing it.

[–] MonkderVierte@lemmy.zip 1 points 2 hours ago* (last edited 2 hours ago)

Stackoverflow, but here you go.

I've made a userscript that puts a rel="noopener" on target="_blank" links where missing, with no issues for about half a year usage. While noreferer breaks some payment processors and the like. Sadly i lost it a few months ago, need to redo it sometime.