this post was submitted on 13 Jun 2026
25 points (96.3% liked)
Technology
85355 readers
3658 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related news or articles.
- Be excellent to each other!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- 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.
- Check for duplicates before posting, duplicates may be removed
- 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
view the rest of the comments
About that, you should add
rel="noopener"(and maybenoreferertoo) 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.Can you share some reference? I don't understand how some linked site could affect the site containing it.
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. Whilenorefererbreaks some payment processors and the like. Sadly, i lost it a few months ago, need to redo it sometime.Thanks, really good to know.
For quick reference, here is the first section from the MSDN docs: