This media is not supported in your browser
VIEW IN TELEGRAM
Let’s honor the brave hearts who fought for our freedom. Happy Independence Day 🇮🇳
https://smarttechmukesh.com/
https://mukeshtemplate.blogspot.com/
https://smarttechmukesh.com/diver-blogger-template/
https://smarttechmukesh.com/news-reader-blogger-template/
https://smarttechmukesh.com/minty-blogger-template/
https://smarttechmukesh.com/speedily-blogger-template/
https://smarttechmukesh.com/movie-hut-blogger-template/
https://smarttechmukesh.com/liteg-blogger-template/
https://smarttechmukesh.com/maggy-blogger-template/
https://smarttechmukesh.com/magsoft-blogger-template/
https://smarttechmukesh.com/seo-edge-blogger-template/
https://smarttechmukesh.com/starter-blogger-template/
https://smarttechmukesh.com/newspot-blogger-template/
https://smarttechmukesh.com/magspot-blogger-template/
https://smarttechmukesh.com/amazen-blogger-template/
https://smarttechmukesh.com/buzzspot-blogger-template/
https://smarttechmukesh.com/techspot-blogger-template/
https://smarttechmukesh.com/labeauty-blogger-template/
https://smarttechmukesh.com/casper-blogger-template/
https://smarttechmukesh.com/smartmag-blogger-template/
https://smarttechmukesh.com/seoflex-blogger-template/
https://smarttechmukesh.com/glassiki-blogger-template/
https://smarttechmukesh.com/iceflex-blogger-template/
https://smarttechmukesh.com/nikk-ui-blogger-template/
https://smarttechmukesh.com/newslite-blogger-template/
https://smarttechmukesh.com/evoflex-blogger-template/
https://smarttechmukesh.com/flexspot-blogger-template/
https://smarttechmukesh.com/color-ui-blogger-template/
https://smarttechmukesh.com/pixonic-blogger-template/
https://smarttechmukesh.com/magistic-blogger-template/
https://smarttechmukesh.com/lightspot-blogger-template/
https://smarttechmukesh.com/airmag-blogger-template/
https://smarttechmukesh.com/super-center-blogger-template/
https://smarttechmukesh.com/blink-blogger-template/
https://smarttechmukesh.com/booster-mag-blogger-template/
https://smarttechmukesh.com/dope-blogger-template/
https://smarttechmukesh.com/pixy-newspaper-10-blogger-template/
https://smarttechmukesh.com/piki-job-alert-blogger-template/
https://smarttechmukesh.com/funnel-seo-blogger-template/
https://smarttechmukesh.com/cov-19-news-blogger-template/
https://smarttechmukesh.com/missile-blogger-template/
https://smarttechmukesh.com/jobiki-blogger-template/
https://smarttechmukesh.com/light-speed-blogger-template/
https://smarttechmukesh.com/cooking-blogger-template/
https://smarttechmukesh.com/galaxy-blogger-template/
https://smarttechmukesh.com/art-blogger-template/
https://smarttechmukesh.com/air-flex-blogger-template/
https://smarttechmukesh.com/sprinkle-blogger-template/
https://smarttechmukesh.com/appiki-blogger-template/
https://smarttechmukesh.com/crafter-blogger-template/
https://smarttechmukesh.com/seo-engine-blogger-template/
https://smarttechmukesh.com/material-ui-blogger-template/
https://smarttechmukesh.com/pixy-newspaper-11-blogger-template/
https://smarttechmukesh.com/silo-blogger-template/
https://smarttechmukesh.com/maglite-blogger-template/
https://smarttechmukesh.com/mag-paper-blogger-template/
https://smarttechmukesh.com/monster-blogger-template/
https://smarttechmukesh.com/citron-blogger-template/
https://smarttechmukesh.com/seo-spot-blogger-template/
https://smarttechmukesh.com/shopping-blogger-template/
https://smarttechmukesh.com/nestspot-blogger-template/
https://mukeshtemplate.blogspot.com/
https://smarttechmukesh.com/diver-blogger-template/
https://smarttechmukesh.com/news-reader-blogger-template/
https://smarttechmukesh.com/minty-blogger-template/
https://smarttechmukesh.com/speedily-blogger-template/
https://smarttechmukesh.com/movie-hut-blogger-template/
https://smarttechmukesh.com/liteg-blogger-template/
https://smarttechmukesh.com/maggy-blogger-template/
https://smarttechmukesh.com/magsoft-blogger-template/
https://smarttechmukesh.com/seo-edge-blogger-template/
https://smarttechmukesh.com/starter-blogger-template/
https://smarttechmukesh.com/newspot-blogger-template/
https://smarttechmukesh.com/magspot-blogger-template/
https://smarttechmukesh.com/amazen-blogger-template/
https://smarttechmukesh.com/buzzspot-blogger-template/
https://smarttechmukesh.com/techspot-blogger-template/
https://smarttechmukesh.com/labeauty-blogger-template/
https://smarttechmukesh.com/casper-blogger-template/
https://smarttechmukesh.com/smartmag-blogger-template/
https://smarttechmukesh.com/seoflex-blogger-template/
https://smarttechmukesh.com/glassiki-blogger-template/
https://smarttechmukesh.com/iceflex-blogger-template/
https://smarttechmukesh.com/nikk-ui-blogger-template/
https://smarttechmukesh.com/newslite-blogger-template/
https://smarttechmukesh.com/evoflex-blogger-template/
https://smarttechmukesh.com/flexspot-blogger-template/
https://smarttechmukesh.com/color-ui-blogger-template/
https://smarttechmukesh.com/pixonic-blogger-template/
https://smarttechmukesh.com/magistic-blogger-template/
https://smarttechmukesh.com/lightspot-blogger-template/
https://smarttechmukesh.com/airmag-blogger-template/
https://smarttechmukesh.com/super-center-blogger-template/
https://smarttechmukesh.com/blink-blogger-template/
https://smarttechmukesh.com/booster-mag-blogger-template/
https://smarttechmukesh.com/dope-blogger-template/
https://smarttechmukesh.com/pixy-newspaper-10-blogger-template/
https://smarttechmukesh.com/piki-job-alert-blogger-template/
https://smarttechmukesh.com/funnel-seo-blogger-template/
https://smarttechmukesh.com/cov-19-news-blogger-template/
https://smarttechmukesh.com/missile-blogger-template/
https://smarttechmukesh.com/jobiki-blogger-template/
https://smarttechmukesh.com/light-speed-blogger-template/
https://smarttechmukesh.com/cooking-blogger-template/
https://smarttechmukesh.com/galaxy-blogger-template/
https://smarttechmukesh.com/art-blogger-template/
https://smarttechmukesh.com/air-flex-blogger-template/
https://smarttechmukesh.com/sprinkle-blogger-template/
https://smarttechmukesh.com/appiki-blogger-template/
https://smarttechmukesh.com/crafter-blogger-template/
https://smarttechmukesh.com/seo-engine-blogger-template/
https://smarttechmukesh.com/material-ui-blogger-template/
https://smarttechmukesh.com/pixy-newspaper-11-blogger-template/
https://smarttechmukesh.com/silo-blogger-template/
https://smarttechmukesh.com/maglite-blogger-template/
https://smarttechmukesh.com/mag-paper-blogger-template/
https://smarttechmukesh.com/monster-blogger-template/
https://smarttechmukesh.com/citron-blogger-template/
https://smarttechmukesh.com/seo-spot-blogger-template/
https://smarttechmukesh.com/shopping-blogger-template/
https://smarttechmukesh.com/nestspot-blogger-template/
Smart Tech Mukesh
Smart Tech Mukesh provides help and guidance to people in a variety of fields including blogging, coding, digital marketing, affiliate marketing and many more.
This media is not supported in your browser
VIEW IN TELEGRAM
Organic SafeLink ⚡️
Smart Tech Mukesh
Organic SafeLink ⚡️
Demo
Custom: https://safelink.smarttechmukesh.com/?url=googlecom
Random:https://safelink.smarttechmukesh.com/?url=WJYOHZ
5$ (3 License Key)
All Templates Integration
Custom: https://safelink.smarttechmukesh.com/?url=googlecom
Random:https://safelink.smarttechmukesh.com/?url=WJYOHZ
5$ (3 License Key)
All Templates Integration
Smart Tech Mukesh
Protect Website from Iframe
JavaScript Code:
Here's a description of the code:
1.
2. JavaScript Code:
-
-
3.
The purpose of this code is to detect if the page is loaded inside an
<script>
// Check if the page is loaded inside an iframe
if (window.self !== window.top) {
// This code will run if the page is inside an iframe
alert("This website cannot be embedded in an iframe. You will be redirected.");
// Redirect to the specified URL
window.top.location.href = 'https://google.com';
}
</script>
Here's a description of the code:
1.
<script>...</script>
: This is a JavaScript code block that is placed within the <body>
of the HTML document. It runs when the page loads.2. JavaScript Code:
-
window.self !== window.top
: This condition checks whether the current page is loaded inside an <iframe>
. window.self
refers to the current window, and window.top
refers to the top-level window. If they are not the same, it means the page is inside an <iframe>
because the top-level window and the current window are different when inside an <iframe>
.-
alert(...)
: If the condition is met (i.e., the page is inside an <iframe>
), this code displays an alert message with the text "This website cannot be embedded in an iframe. You will be redirected."3.
window.top.location.href = 'https://google.com';
: After displaying the alert message, this line of code redirects the user's browser to the specified URL (https://google.com
) by setting the window.top.location.href
property.The purpose of this code is to detect if the page is loaded inside an
<iframe>
. If it is, it displays an alert to inform the user that embedding the website in an <iframe>
is not allowed and then redirects the user to a specified URL. This approach helps protect your website's content from being displayed within an <iframe>
on another website.