Welcome Here And Thanks For Visiting. Like Us On Facebook...

EXEIdeas – Let's Your Mind Rock » HTML-CSS-PHP-JavaScript / JavaScript Codes » How To Lock Your Site/Blog From Being Used In An IFrame?

How To Lock Your Site/Blog From Being Used In An IFrame?


Now everyone is embedding others site, blog, tool in his site and blog to get visitors that is not his work and also want to earn from that. NOw in real all load is going on your site and he is just earning ads and pageviews.

Now its time to lock your website or blog so no one can use your site or blog in there site in using iframe and if he will use it then his blog will be redirected to your sites and that can increase your traffic too and user will know that who own this page really. So its time to use below codes and lock your site now.


1.) Simple And Short Code.
2.) Pure JavaScript Code.
3.) No External File Added.
4.) Will Redirect Others Site To Your.
5.) No Time Delay.
6.) You Will Get Referral Traffic.
7.) Your Pageviews Will Increase.
8.) No Need To Edit Your Previous Codes.
9.) Will Work On Every Browser.
10.) Quick To Load And Work.

How To Use It?

Just copy the below cods and add it in your desired website or blog <head> tags only. No need to customize more.

<script type='text/javascript'>
 window.onload = function () {if ( !== window.self);


There is no need of customization as its a default and general codes that will work for every site and domain. Just add it and save it.

Last Words:

This is what we want to share with you. If you liked this then please share it with your friends and leave your comments and if you want to get more like this then stay with us for our upcoming articles.

You Like It, Please Share This Recipe With Your Friends Using...

2 Responses to “How To Lock Your Site/Blog From Being Used In An IFrame?”

  1. Gary Graefen says:

    The tip is helpful-but I have found that ALL views matter-even in an Iframe

Leave a Reply

Your email address will not be published. Required fields are marked *