Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rel="noopener noreferrer" to target="_blank" #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

auralon
Copy link

@auralon auralon commented Mar 12, 2018

rel="noopener noreferrer" should be added to links containing target="_blank" as a precaution against reverse tabnabbing. For more information, please refer to the following article:
https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/

rel="noopener noreferrer" should be added to links containing target="_blank" as a precaution against reverse tabnabbing. For more information, please refer to the following article:
https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/
@terryupton
Copy link

+1 for this.

@terryupton
Copy link

terryupton commented Sep 3, 2018

@auralon I think this might be as simple as adding this in to the attributes like so;
{% set attributes = { rel: "noopener noreferrer" } %}

{{ block.linkTo.htmlLink(attributes) }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants