Skip to content
Snippets Groups Projects
Verified Commit 1b39097b authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

Add rel="noopener" to target="_blank" links

To prevent some click-jacking attacks, adding rel="noopener" makes sure 
that the new tab opened has no access to the window object of the parent 
tab and this way may redirects it to a phishing page.

Reference:
https://mathiasbynens.github.io/rel-noopener/
parent 54d8b100
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@
{% if site.author.mastodon %}
<!-- Mastodon -->
<li class="navigation__item">
<a href="https://{{ site.author.mastodon.instance }}/@{{ site.author.mastodon.username }}" title="@{{ site.author.mastodon.username }} on {{ site.author.mastodon.instance }}" target="_blank">
<a href="https://{{ site.author.mastodon.instance }}/@{{ site.author.mastodon.username }}" title="@{{ site.author.mastodon.username }} on {{ site.author.mastodon.instance }}" target="_blank" rel="noopener">
<i class="fa fa-mastodon"></i>
<span class="label">Twitter</span>
</a>
......@@ -39,7 +39,7 @@
{% if site.author.twitter_username %}
<!-- Twitter -->
<li class="navigation__item">
<a href="http://twitter.com/{{ site.author.twitter_username }}" title="@{{ site.author.twitter_username }} on Twitter" target="_blank">
<a href="http://twitter.com/{{ site.author.twitter_username }}" title="@{{ site.author.twitter_username }} on Twitter" target="_blank" rel="noopener">
<i class="fa fa-twitter"></i>
<span class="label">Twitter</span>
</a>
......@@ -49,7 +49,7 @@
{% if site.author.facebook_username %}
<!-- Facebook -->
<li class="navigation__item">
<a href="http://fb.me/{{ site.author.facebook_username }}" title="{{ site.author.facebook_username }} on Facebook" target="_blank">
<a href="http://fb.me/{{ site.author.facebook_username }}" title="{{ site.author.facebook_username }} on Facebook" target="_blank" rel="noopener">
<i class="fa fa-facebook"></i>
<span class="label">Facebook</span>
</a>
......@@ -59,7 +59,7 @@
{% if site.author.linkedin_username %}
<!-- LinkedIn -->
<li class="navigation__item">
<a href="https://www.linkedin.com/in/{{ site.author.linkedin_username }}" title="{{ site.author.linkedin_username }} on LinkedIn" target="_blank">
<a href="https://www.linkedin.com/in/{{ site.author.linkedin_username }}" title="{{ site.author.linkedin_username }} on LinkedIn" target="_blank" rel="noopener">
<i class="fa fa-linkedin"></i>
<span class="label">LinkedIn</span>
</a>
......@@ -69,7 +69,7 @@
{% if site.author.github_username %}
<!-- GitHub -->
<li class="navigation__item">
<a href="https://www.github.com/{{ site.author.github_username }}" title="{{ site.author.github_username }} on GitHub" target="_blank">
<a href="https://www.github.com/{{ site.author.github_username }}" title="{{ site.author.github_username }} on GitHub" target="_blank" rel="noopener">
<i class="fa fa-github"></i>
<span class="label">GitHub</span>
</a>
......@@ -79,7 +79,7 @@
{% if site.author.gitlab %}
<!-- GitHub -->
<li class="navigation__item">
<a href="https://{{ site.author.gitlab.instance }}/{{ site.author.gitlab.username }}" title="{{ site.author.gitlab.username }} on {{ site.author.gitlab.instance }}" target="_blank">
<a href="https://{{ site.author.gitlab.instance }}/{{ site.author.gitlab.username }}" title="{{ site.author.gitlab.username }} on {{ site.author.gitlab.instance }}" target="_blank" rel="noopener">
<i class="fa fa-gitlab"></i>
<span class="label">GitHub</span>
</a>
......@@ -89,7 +89,7 @@
{% if site.author.email %}
<!-- Email -->
<li class="navigation__item">
<a href="mailto:{{ site.author.email }}" title="Email {{ site.author.email }}" target="_blank">
<a href="mailto:{{ site.author.email }}" title="Email {{ site.author.email }}" target="_blank" rel="noopener">
<i class="fa fa-envelope"></i>
<span class="label">Email</span>
</a>
......@@ -98,7 +98,7 @@
<!-- RSS -->
<li class="navigation__item">
<a href="{{ site.baseurl }}/feed.xml" title="Subscribe" target="_blank">
<a href="{{ site.baseurl }}/feed.xml" title="Subscribe" target="_blank" rel="noopener">
<i class="fa fa-rss"></i>
<span class="label">RSS</span>
</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment