3 ms·
The brute-force way to do it is to run a proxy on your own server that loads the page in question, strips out either some or all of the javascript, then serves
by jasonkester 16y ago
The brute-force way to do it is to run a proxy on your own server that loads the page in question, strips out either some or all of the javascript, then serves it onward.
Replacing 'top.location' with 'self.location' probably does the trick for 95% of sites.
- onecreativenerd 16y agoAh, but that might skew the results... maybe not too much, though since it's only manipulating the root document? However, cross-domain permission would be broken for javascript inside the site. If you look at the bottom of ui.js, you can see I tried a brute-force framebuster-buster. It does notify the user that the site is trying to break out, but it also catches legitimate outgoing links. It needs to be polished more before I can release it. This is issue #1 on github for the project, BTW.