we want setup anticlickjack on magento 2.4.2
Budget: $10 – $100 USD
Hello, we want install anticlickjack on magento 2.4.2, because, we have hackers that burns ads google campaigns that generating automated traffic identified by fingerprints. thanks
For avoid that hacker uploading website on server like iframe and do fraud click
<style id="antiClickjack">
body{
display:none !important;}
}
</style>
<style>
#cart-subtotal-shipping{ display: none; }
.cart-content p:nth-child(3n){ display: none; }
.summary-selected-carrier .carrier-delay{ display: none; }
</style>
<script type="text/javascript">
if (self === top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
top.location = self.location;
}
For avoid that hacker uploading website on server like iframe and do fraud click
<style id="antiClickjack">
body{
display:none !important;}
}
</style>
<style>
#cart-subtotal-shipping{ display: none; }
.cart-content p:nth-child(3n){ display: none; }
.summary-selected-carrier .carrier-delay{ display: none; }
</style>
<script type="text/javascript">
if (self === top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
top.location = self.location;
}