fix(sec): Add 'rel="noopener"' to external links

Add 'rel="noopener"' attribute to external links for improved security and accessibility.
This commit is contained in:
Rico van Zelst
2024-03-03 17:44:49 +01:00
parent 37bc210923
commit 755fcf9561
5 changed files with 9 additions and 9 deletions

View File

@@ -5,15 +5,15 @@
Heimerdinger.LoL
</a>
<p class="my-4 text-sm text-gray-500 dark:text-gray-400">Heimerdinger.LoL was created under <a
href="https://www.riotgames.com/" target="_blank">Riot Games</a>' "<a
href="https://www.riotgames.com/" rel="noopener" target="_blank">Riot Games</a>' "<a
href="https://www.riotgames.com/en/legal"
class="underline transition-all duration-700 decoration-orange-500/50 hover:decoration-orange-500 hover:decoration-1"
target="_blank">Legal
rel="noopener" target="_blank">Legal
Jibber
Jabber</a>" policy
using assets owned by <a
href="https://www.riotgames.com/" target="_blank">Riot Games</a>. <a
href="https://www.riotgames.com/" target="_blank">Riot Games</a> does not endorse or sponsor
href="https://www.riotgames.com/" rel="noopener" target="_blank">Riot Games</a>. <a
href="https://www.riotgames.com/" rel="noopener" target="_blank">Riot Games</a> does not endorse or sponsor
this project.</p>
<ul class="flex flex-wrap items-center justify-center mb-6 text-neutral-300 ">
<li>
@@ -32,7 +32,7 @@
</ul>
<div class="flex items-center justify-center w-full mb-4">
<a href="https://www.producthunt.com/posts/heimerdinger-lol?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-heimerdinger&#0045;lol"
target="_blank"><img
rel="noopener" target="_blank"><img
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=442110&theme=dark"
alt="Heimerdinger&#0046;lol - Discover&#0032;LoL&#0058;&#0032;Champions&#0044;&#0032;Skins&#0044;&#0032;Sales&#0032;and&#0032;More&#0033; | Product Hunt"
style="width: 250px; height: 54px;" width="250" height="54"/></a>

View File

@@ -14,7 +14,7 @@
Check out upcoming skins in League of Legends. <br>
<span class="text-sm text-stone-400">Data is sourced from the <a
class="underline transition-all duration-700 decoration-1 decoration-orange-400/50 hover:decoration-orange-400"
href="https://leagueoflegends.fandom.com/wiki/League_of_Legends_Wiki" target="_blank">LoL
href="https://leagueoflegends.fandom.com/wiki/League_of_Legends_Wiki" rel="noopener" target="_blank">LoL
Wiki</a>, ran by volunteers.</span><br>
<span class="text-sm text-stone-400">We cannot guarantee its real-time accuracy.</span>
</p>

View File

@@ -25,7 +25,7 @@
alt="{{$icon->title}} Icon"
class="transition-transform duration-700 rounded-2xl bg-clip-border border-2 border-orange-400/40
shadow-md shadow-orange-400/20"/>
<a href="{{$icon->image}}" target="_blank"
<a href="{{$icon->image}}" rel="noopener" target="_blank"
class="text-center text-neutral-100 text-sm font-medium px-4 py-2">
View in HD
</a>

View File

@@ -30,7 +30,7 @@
class="z-10 object-cover w-full h-full transition-transform duration-700 transform scale-100 rounded-2xl">
<div class="absolute bottom-0 left-0 p-4">
<a href="{{ $skin->getSkinImageAttribute() }}" target="_blank"
<a href="{{ $skin->getSkinImageAttribute() }}" rel="noopener" target="_blank"
class="p-2 text-base font-bold text-white bg-black bg-opacity-50 rounded-xl">View in
HD</a>
</div>