mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-05 03:40:48 +01:00
Enhance security by adding rel="noopener" to external links
- Updated multiple HTML templates to include rel="noopener" on links that open in a new tab, improving security by preventing potential reverse tabnabbing attacks. - This change affects various templates across the backup, base, file manager, mail server, and website functions sections.
This commit is contained in:
@@ -529,7 +529,7 @@
|
||||
<div>
|
||||
<strong>{% trans "Notice:" %}</strong> {% trans "You are accessing CyberPanel via an IP address." %}<br>
|
||||
{% trans "The Web Terminal will not work when accessed via IP. Please issue a hostname SSL and access the panel using your hostname (with valid SSL) to enable the terminal." %}<br>
|
||||
<a href="{{ ssl_issue_link }}" target="_blank" class="btn btn-warning" style="margin-top:10px;">
|
||||
<a href="{{ ssl_issue_link }}" target="_blank" rel="noopener" class="btn btn-warning" style="margin-top:10px;">
|
||||
<i class="fas fa-lock"></i>
|
||||
{% trans "Issue Hostname SSL" %}
|
||||
</a>
|
||||
@@ -543,7 +543,7 @@
|
||||
<div>
|
||||
<strong>{% trans "Warning:" %}</strong> {% trans "Your server is using a self-signed SSL certificate for the web terminal." %}<br>
|
||||
{% trans "For security and browser compatibility, please issue a valid hostname SSL certificate." %}<br>
|
||||
<a href="{{ ssl_issue_link }}" target="_blank" class="btn btn-warning" style="margin-top:10px;">
|
||||
<a href="{{ ssl_issue_link }}" target="_blank" rel="noopener" class="btn btn-warning" style="margin-top:10px;">
|
||||
<i class="fas fa-lock"></i>
|
||||
{% trans "Issue SSL Now" %}
|
||||
</a>
|
||||
@@ -556,7 +556,7 @@
|
||||
{% trans "SSH Configuration" %}
|
||||
<img ng-hide="wpInstallLoading" src="{% static 'images/loading.gif' %}" style="display: none;" id="wpInstallLoading">
|
||||
</h3>
|
||||
<a target="_blank" href="https://cyberpanel.net/KnowledgeBase/home/ssh-manager-cyberpanel/" class="btn btn-link">
|
||||
<a target="_blank" rel="noopener" href="https://cyberpanel.net/KnowledgeBase/home/ssh-manager-cyberpanel/" class="btn btn-link">
|
||||
<i class="fas fa-book"></i>
|
||||
{% trans "SFTP Docs" %}
|
||||
</a>
|
||||
@@ -671,7 +671,7 @@
|
||||
<i class="fas fa-info-circle" style="font-size: 20px;"></i>
|
||||
<div>
|
||||
<strong>{% trans "This feature requires the CyberPanel Add-ons bundle." %}</strong><br>
|
||||
<a href="https://cyberpanel.net/cyberpanel-addons" target="_blank" style="color: var(--primary-color); text-decoration: underline; font-weight: 600;">
|
||||
<a href="https://cyberpanel.net/cyberpanel-addons" target="_blank" rel="noopener" style="color: var(--primary-color); text-decoration: underline; font-weight: 600;">
|
||||
{% trans "Learn more & upgrade" %}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user