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:
Master3395
2025-09-13 17:44:37 +02:00
parent f95566d3eb
commit 97fd4e055a
18 changed files with 42 additions and 40 deletions

View File

@@ -402,7 +402,7 @@ ls -la /usr/local/CyberCP/testPlugin</code></pre>
</div>
<blockquote>
<strong>Source:</strong> This guide is based on the official CyberPanel documentation and the <a href="https://github.com/usmannasir/beautiful_names" target="_blank">beautiful_names plugin repository</a>.
<strong>Source:</strong> This guide is based on the official CyberPanel documentation and the <a href="https://github.com/usmannasir/beautiful_names" target="_blank" rel="noopener">beautiful_names plugin repository</a>.
</blockquote>
<h2>Prerequisites</h2>
@@ -476,7 +476,7 @@ urlpatterns = [
<h2>Step 3: Responding to Events</h2>
<p>To plug into events fired by CyberPanel core, you can respond to various events happening in the core. Visit the <a href="http://cyberpanel.net/docs/2-list-of-signals-events-files/" target="_blank">signal file documentation</a> for a complete list of events.</p>
<p>To plug into events fired by CyberPanel core, you can respond to various events happening in the core. Visit the <a href="http://cyberpanel.net/docs/2-list-of-signals-events-files/" target="_blank" rel="noopener">signal file documentation</a> for a complete list of events.</p>
<h3>Example Events</h3>
<ul>
@@ -518,7 +518,7 @@ python pluginInstaller.py install --pluginName examplePlugin</code></pre>
python pluginInstaller.py remove --pluginName examplePlugin</code></pre>
<h2>Beautiful Names Plugin Example</h2>
<p>CyberPanel has released an official plugin called <a href="https://github.com/usmannasir/beautiful_names" target="_blank">Beautiful Names</a> that removes the <code>admin_</code> prefix from Package and FTP account names. This plugin serves as a great example of how to create CyberPanel plugins.</p>
<p>CyberPanel has released an official plugin called <a href="https://github.com/usmannasir/beautiful_names" target="_blank" rel="noopener">Beautiful Names</a> that removes the <code>admin_</code> prefix from Package and FTP account names. This plugin serves as a great example of how to create CyberPanel plugins.</p>
<h3>Installation of Beautiful Names</h3>
<pre><code>cd /usr/local/CyberCP/pluginInstaller
@@ -535,9 +535,9 @@ python pluginInstaller.py remove --pluginName beautifulNames</code></pre>
<h2>Additional Resources</h2>
<ul>
<li><a href="http://cyberpanel.net/docs/2-list-of-signals-events-files/" target="_blank">Complete List of Signals and Events</a></li>
<li><a href="https://github.com/usmannasir/beautiful_names" target="_blank">Beautiful Names Plugin Repository</a></li>
<li><a href="https://github.com/usmannasir/cyberpanel" target="_blank">CyberPanel GitHub Repository</a></li>
<li><a href="http://cyberpanel.net/docs/2-list-of-signals-events-files/" target="_blank" rel="noopener">Complete List of Signals and Events</a></li>
<li><a href="https://github.com/usmannasir/beautiful_names" target="_blank" rel="noopener">Beautiful Names Plugin Repository</a></li>
<li><a href="https://github.com/usmannasir/cyberpanel" target="_blank" rel="noopener">CyberPanel GitHub Repository</a></li>
</ul>
<blockquote>