Hello, mates About 50% of all impressions of one my blog are pictures. As you know, when you open a picture via Google Image Search, ads can not be displayed so my CTR is very low. How can I kill this frame? I have read here - http://en.wikipedia.org/wiki/Framekiller but can someone explain me better what to do. I am using Wordpress.
You would add that code into the header of your pages that you want to kill the iframe. You would set the window location equal to the actual page location. Basically it just checks if it, itself, is the main window. If not, it's considered to be an iframe and redirects to the page you set it to.
Can you explain better what to do. How to reach the header for the page where is the picture? And what exactly should be the java script code?
You would place the frame killer code between the <head> and </head> tags on your page. Below is the frame killer code that Hulu uses, you can verify that it breaks the Google image frame by going to google image search, and typing in 'site:hulu.com' and clicking on any image from hulu.com. Simple Frame Killer <script type="text/javascript"> if (top.location != location) { top.location.href = document.location.href; } </script> Code (markup): On your actual site it would look like this, notice where the code is placed: <html> <head> <title>Iframe Buster</title> <script type="text/javascript"> if (top.location != location) { top.location.href = document.location.href; } </script> </head> <body> <p>This is the body of your page.</p> </body> </html> HTML: Enjoy