2

I need to bypass or bust a frame buster, but I don't have a server that returns 204. The best solution that works (partially so far) is the one in https://crypto.stanford.edu/~dabo/pubs/papers/framebust.pdf on page 4 section C, onBeforeUnload – 204 Flushing.

It is discussed here (Frame buster buster) and here (Frame Buster Buster ... buster code needed) and the code is reproduced below

<script type="text/javascript">
 var prevent_bust = 0 
 window.onbeforeunload = function() { prevent_bust++ } 
 setInterval(function() { 
 if (prevent_bust > 0) { 
 prevent_bust -= 2 
 window.top.location = 'http://example.org/page-which-responds-with-204' 
 } 
 }, 1) 
</script>

My problem is, I don't have a server that returns an HTTP status code 204 (and I cannot set one up). How do I get around this?

asked Feb 5, 2018 at 1:49
3
  • 4
    Politely ask the owner of the site in question to allow you to display their website in an <iframe>? Commented Feb 5, 2018 at 1:53
  • It may help to understand about frame busting restrictions owasp.org/www-pdf-archive//… Commented Oct 30, 2021 at 17:31
  • This document was fairly informative crypto.stanford.edu/~dabo/pubs/papers/framebust.pdf Commented Oct 30, 2021 at 17:33

1 Answer 1

1

Since you can't set up your own server, you don't have many options aside from using a third party server. The obvious downside is that it's not under your control, so you can't control its availability.

A server whose purpose is to return various HTTP status codes will potentially be more reliable (as opposed to finding something random). You could use httpstat.us. The main page lists all the status codes and options it supports. The following will return HTTP 204: httpstat.us/204.

answered Sep 16, 2018 at 11:06
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.