Hi,
I have done some more investigation and some tests.
I made s simple page with an iframe breaker and was possible too keep it in the frame.
But I also had the issue that when the blocker script was enabled other links on the parent page where not working anymore.
If you want to try:
put:
var prevent_bust = 0;
// Event handler to catch execution of the busting script.
window.onbeforeunload = function() { prevent_bust++ };
// Continuously monitor whether busting script has fired.
setInterval(function() {
if (prevent_bust > 0) { // Yes: it has fired.
prevent_bust = 0; // Avoid further action.
// Get a ‘No Content’ status which keeps us on the same page.
window.top.location = ‘https://localhost/204.php’;
}
}, 1);
into the ai.js
and create a file 204.php with the content
<?php
header(“HTTP/1.0 204 No Content”);
?>
on your server. Then change the https://localhost/204.php that it points to your 204.php.
Make sure to clean all browser caches when you test.
I’m currently not really happy with this solution.
You can try and tell me if you are ;).
You see the examples here:
https://en.wikipedia.org/wiki/Framekiller
I also tested the alternative solution from there where a message is shown. But this also has the problem that the message is shown on EVERY link on the page.
So please give me your thoughts.
Michael