kiss icon indicating copy to clipboard operation
kiss copied to clipboard

Do not use target="_blank" for social media links

Open DanielRuf opened this issue 4 years ago • 2 comments

target="_blank" is bad for the accessibility and for the security, you also forgot to add noreferrer to the rel attribute.

See also https://blog.daniel-ruf.de/target-blank-considered-harmful/.

DanielRuf avatar Nov 25 '20 20:11 DanielRuf

What is the preferred solution? Remove the target attribute or set the rel attribute to mitigate tab nabbing attacks?

DanielRuf avatar Jan 16 '21 12:01 DanielRuf

I have no idea to be honest. Most of my work is backend/devops and I rarely touch HTML besides some basics. Feel free to implement whatever you consider better.

ribice avatar Jan 19 '21 21:01 ribice