Skip to content

Commit

Permalink
chore: add noopener noreferrer to every target _blank (#1608)
Browse files Browse the repository at this point in the history
  • Loading branch information
cquintana92 authored Feb 27, 2023
1 parent 3fcb37f commit b3ce5c8
Show file tree
Hide file tree
Showing 16 changed files with 50 additions and 29 deletions.
4 changes: 3 additions & 1 deletion templates/dashboard/alias_contact_manager.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ <h1 class="h3">
</p>
<p>
This Youtube video can also quickly walk you through the steps:
<a href="https://www.youtube.com/watch?v=VsypF-DBaow" target="_blank">
<a href="https://www.youtube.com/watch?v=VsypF-DBaow"
target="_blank"
rel="noopener noreferrer">
How to send emails from an alias <i class="fe fe-external-link"></i>
</a>
</p>
Expand Down
4 changes: 3 additions & 1 deletion templates/dashboard/custom_domain.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ <h1 class="h3">

<div class="alert alert-danger" role="alert">
This feature is only available on Premium plan.
<a href="{{ URL }}/dashboard/pricing" target="_blank" rel="noopener">
<a href="{{ URL }}/dashboard/pricing"
target="_blank"
rel="noopener noreferrer">
Upgrade<i class="fe fe-external-link"></i>
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/dashboard/domain_detail/auto-create.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h3>New rule</h3>
data-clipboard-text=".*suffix">.*suffix</em>
<br />
To test out regex, we recommend using regex tester tool like
<a href="https://regex101.com" target="_blank">https://regex101.com↗</a>
<a href="https://regex101.com" target="_blank" rel="noopener noreferrer">https://regex101.com↗</a>
</div>
</div>
<div class="form-group">
Expand Down
6 changes: 3 additions & 3 deletions templates/dashboard/domain_detail/dns.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ <h1 class="h2">{{ custom_domain.domain }}</h1>
SPF
<a href="https://en.wikipedia.org/wiki/Sender_Policy_Framework"
target="_blank"
rel="noopener">(Wikipedia↗)</a>
rel="noopener noreferrer">(Wikipedia↗)</a>
is an email
authentication method
designed to detect forging sender addresses during the delivery of the email.
Expand Down Expand Up @@ -229,7 +229,7 @@ <h1 class="h2">{{ custom_domain.domain }}</h1>
DKIM
<a href="https://en.wikipedia.org/wiki/DomainKeys_Identified_Mail"
target="_blank"
rel="noopener">(Wikipedia↗)</a>
rel="noopener noreferrer">(Wikipedia↗)</a>
is an
email
authentication method
Expand Down Expand Up @@ -335,7 +335,7 @@ <h1 class="h2">{{ custom_domain.domain }}</h1>
DMARC
<a href="https://en.wikipedia.org/wiki/DMARC"
target="_blank"
rel="noopener">
rel="noopener noreferrer">
(Wikipedia↗)
</a>
is designed to protect the domain from unauthorized use, commonly known as email spoofing.
Expand Down
8 changes: 4 additions & 4 deletions templates/dashboard/pricing.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</ul>
<div class="small-text">
More information on our
<a href="https://simplelogin.io/pricing" target="_blank" rel="noopener">
<a href="https://simplelogin.io/pricing" target="_blank" rel="noopener noreferrer">
Pricing
Page <i class="fe fe-external-link"></i>
</a>
Expand Down Expand Up @@ -120,7 +120,7 @@ <h4>Proton Unlimited, Business and Visionary plans include SimpleLogin premium a
<div id="normal-upgrade" class="{% if proton_upgrade %} collapse{% endif %}">
<div class="display-6 my-3">
🔐 Secure payments by
<a href="https://paddle.com" target="_blank" rel="noopener">
<a href="https://paddle.com" target="_blank" rel="noopener noreferrer">
Paddle <i class="fe fe-external-link"></i>
</a>
</div>
Expand Down Expand Up @@ -164,13 +164,13 @@ <h4>Proton Unlimited, Business and Visionary plans include SimpleLogin premium a
<hr />
<i class="fa fa-bitcoin"></i>
Payment via
<a href="https://commerce.coinbase.com/?lang=en" target="_blank">
<a href="https://commerce.coinbase.com/?lang=en" target="_blank" rel="noopener noreferrer">
Coinbase Commerce<i class="fe fe-external-link"></i>
</a>
<br />
Currently Bitcoin, Bitcoin Cash, Dai, Ethereum, Litecoin and USD Coin are supported.
<br />
<a class="btn btn-outline-primary" href="{{ url_for('dashboard.coinbase_checkout_route') }}" target="_blank">
<a class="btn btn-outline-primary" href="{{ url_for('dashboard.coinbase_checkout_route') }}" target="_blank" rel="noopener noreferrer">
Yearly billing - Crypto
<br />
$30/year
Expand Down
6 changes: 4 additions & 2 deletions templates/dashboard/refused_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ <h1 class="h3 mb-5">Quarantine & Bounce</h1>
<div class="alert alert-info">
This page shows all emails that are either refused by your mailbox (bounced) or detected as spams/phishing (quarantine) via our
<a href="https://simplelogin.io/docs/getting-started/anti-phishing/"
target="_blank">anti-phishing program ↗</a>
target="_blank"
rel="noopener noreferrer">anti-phishing program ↗</a>
<ul class="p-4 mb-0">
<li>
If the email is indeed spam, this means the alias is now in the hands of a spammer,
Expand All @@ -26,7 +27,8 @@ <h1 class="h3 mb-5">Quarantine & Bounce</h1>
<li>
If the email isn't spam and your mailbox refuses the email, we recommend to create a <b>filter</b> to avoid your mailbox provider from blocking legitimate emails. Please refer to
<a href="https://simplelogin.io/docs/getting-started/troubleshooting/#emails-end-up-in-spam"
target="_blank">Setting up filter for SimpleLogin emails ↗</a>
target="_blank"
rel="noopener noreferrer">Setting up filter for SimpleLogin emails ↗</a>
</li>
<li>
If the email is flagged as spams/phishing, this means that the sender explicitly states their emails should respect
Expand Down
3 changes: 2 additions & 1 deletion templates/dashboard/setting.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
Yearly plan subscribed with cryptocurrency which expires on
{{ coinbase_sub.end_at.format("YYYY-MM-DD") }}.
<a href="{{ url_for('dashboard.coinbase_checkout_route') }}"
target="_blank">
target="_blank"
rel="noopener noreferrer">
Extend Subscription <i class="fe fe-external-link"></i>
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/dashboard/subdomain.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1 class="h3">
This feature is only available on Premium plan.
<a href="{{ url_for('dashboard.pricing') }}"
target="_blank"
rel="noopener">
rel="noopener noreferrer">
Upgrade<i class="fe fe-external-link"></i>
</a>
</div>
Expand Down
1 change: 1 addition & 0 deletions templates/developer/client_details/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
</div>
<a href="https://docs.simplelogin.io"
target="_blank"
rel="noopener noreferrer"
class="btn btn-block btn-secondary mt-4">
Documentation <i class="fe fe-external-link"></i>
</a>
Expand Down
4 changes: 3 additions & 1 deletion templates/developer/client_details/basic_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
<h4 class="alert-heading">Well done!</h4>
<p>
Please head to our
<a href="https://docs.simplelogin.io" target="_blank" rel="noopener">
<a href="https://docs.simplelogin.io"
target="_blank"
rel="noopener noreferrer">
documentation <i class="fe fe-external-link"></i>
</a>
to see how to add SIWSL into your app.
Expand Down
1 change: 1 addition & 0 deletions templates/developer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ <h1 class="h3">
<a href="{{ url_for('developer.new_client') }}" class="btn btn-primary">New website</a>
<a href="https://docs.simplelogin.io"
target="_blank"
rel="noopener noreferrer"
class="ml-2 btn btn-secondary">
Docs <i class="fe fe-external-link"></i>
</a>
Expand Down
4 changes: 3 additions & 1 deletion templates/discover/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ <h3>Apps</h3>

<div class="col-sm-4 col-xl-2">
<div class="card">
<a href="{{ client.home_url }}" target="_blank" rel="noopener">
<a href="{{ client.home_url }}"
target="_blank"
rel="noopener noreferrer">
<img class="card-img-top" src="{{ client.get_icon_url() }}">
</a>
<div class="card-body d-flex flex-column">
Expand Down
2 changes: 1 addition & 1 deletion templates/emails/_emailhelpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<a href="{{ link }}"
class="f-fallback button"
target="_blank"
rel="noopener"
rel="noopener noreferrer"
style="color: #FFF;
border-color: #3869d4;
border-style: solid;
Expand Down
14 changes: 7 additions & 7 deletions templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,51 +145,51 @@ <h3 class="h4 text-white">Downloads</h3>
<ul class="list-group list-group-transparent list-group-white list-group-flush list-group-borderless mb-0 footer-list-group">
<li>
<a class="list-group-item text-white footer-item "
rel="noopener"
rel="noopener noreferrer"
href="https://chrome.google.com/webstore/detail/dphilobhebphkdjbpfohgikllaljmgbn">
Chrome Extension
</a>
</li>
<li>
<a class="list-group-item text-white footer-item "
rel="noopener"
rel="noopener noreferrer"
href="https://addons.mozilla.org/firefox/addon/simplelogin/">
Firefox Add-on
</a>
</li>
<li>
<a class="list-group-item text-white footer-item "
rel="noopener"
rel="noopener noreferrer"
href="https://microsoftedge.microsoft.com/addons/detail/simpleloginreceive-sen/diacfpipniklenphgljfkmhinphjlfff">
Edge Add-on
</a>
</li>
<li>
<a class="list-group-item text-white footer-item "
rel="noopener"
rel="noopener noreferrer"
href="https://apps.apple.com/app/id1494051017">
Safari
Extension
</a>
</li>
<li>
<a class="list-group-item text-white footer-item "
rel="noopener"
rel="noopener noreferrer"
href="https://apps.apple.com/app/id1494359858">
iOS
(App Store)
</a>
</li>
<li>
<a class="list-group-item text-white footer-item "
rel="noopener"
rel="noopener noreferrer"
href="https://play.google.com/store/apps/details?id=io.simplelogin.android">
Android (Play Store)
</a>
</li>
<li>
<a class="list-group-item text-white footer-item "
rel="noopener"
rel="noopener noreferrer"
href="https://f-droid.org/en/packages/io.simplelogin.android.fdroid/">
Android (F-Droid)
</a>
Expand Down
11 changes: 8 additions & 3 deletions templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,17 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a>
<div class="dropdown-menu dropdown-menu-left dropdown-menu-arrow">
<div class="dropdown-item">
<a href="https://simplelogin.io/docs/" target="_blank">
<a href="https://simplelogin.io/docs/"
target="_blank"
rel="noopener noreferrer">
Docs
<i class="fa fa-external-link" aria-hidden="true"></i>
</a>
</div>
<div class="dropdown-item">
<a href="https://github.com/simple-login/app/discussions"
target="_blank">
target="_blank"
rel="noopener noreferrer">
Forum
<i class="fa fa-external-link" aria-hidden="true"></i>
</a>
Expand All @@ -94,7 +97,9 @@
</div>
{% else %}
<div class="nav-item">
<a href="https://simplelogin.io/docs/" target="_blank">
<a href="https://simplelogin.io/docs/"
target="_blank"
rel="noopener noreferrer">
Docs
<i class="fa fa-external-link" aria-hidden="true"></i>
</a>
Expand Down
7 changes: 5 additions & 2 deletions templates/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,17 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Help</a>
<div class="dropdown-menu dropdown-menu-left dropdown-menu-arrow">
<div class="dropdown-item">
<a href="https://simplelogin.io/docs/" target="_blank">
<a href="https://simplelogin.io/docs/"
target="_blank"
rel="noopener noreferrer">
Docs
<i class="fa fa-external-link" aria-hidden="true"></i>
</a>
</div>
<div class="dropdown-item">
<a href="https://github.com/simple-login/app/discussions"
target="_blank">
target="_blank"
rel="noopener noreferrer">
Forum
<i class="fa fa-external-link" aria-hidden="true"></i>
</a>
Expand Down

0 comments on commit b3ce5c8

Please sign in to comment.