Stop redirect from iframe

by 37 replies
56
Is their a way I could stop a redirect in a iframe?
#website design #iframe #redirect #stop
  • yes google not allow to redirect
  • What is the code to stop an website from redirecting inside iframe?
    • [1] reply
    • <script type="text/javascript">
      <!--
      window.location = "http://www.redirect-Link.c0m/"
      //-->
      </script>
      remove the script similar to the line above.
  • I'm still looking for a code if anyone has one
  • I'm not sure I understand what you're asking. Are you trying to stop a redirect that is being called from whatever is inside the iFrame? We need more specifics please.
  • I'm trying to keep a website inside the iframe without it busting out to its page

    Ex. The website inside the iframe will redirect or bust out of it but I don't want it too.

    <iframe
    src="http://adfoc.us/2233183576"
    width="100%">
    </iframe>
  • Well I gave details and an example
  • Does anyone know a code to keep a website from redirecting or busting out an iframe????
  • Now I have a iframe code but only works with google chrome.
  • You have to give the iframe an id attribute and a name:

    id="thisframe"

    for example. Then, you have to point to the id as the target for the URL. Otherwise, the call to the URL in the browser doesn't know where to send the page.

    So, you could have:

    <iframe id="myframe" etc, etc>

    then:

    <a href="http://your_url" target="myframe">

    The call to the url will go to the iframe with that ID.
  • What about a site like linkbucks, that has a framebreaker, how would you iframe that site?
  • Anyone can update me on this??
  • Unfortunately there is no way to contain a site that uses framebreakers. Lots of blackhat sites have tried to run sites where they iframe sites like linkbucks, which is why linkbucks breaks out of frames. Browsers will always allow sites to break out because it would be dangerous if you could just iframe sites in the background.
    • [ 1 ] Thanks
  • Easy, use javascript. Create a function which if the iframe's src isn't the url that you want it to be, redirect it back to the url that you want. Also, add onchange="yourfunctionname()" to the iframe. So whenevever, the iframe loads or changes, it will do that function which checks for its src.
    • [1] reply


    • Do you have a code for that or know where I can find one?
      • [1] reply
  • Can someone update me with a code on this?
  • Can anyone update me on this?
    I could really use the help
  • You're not going to stop a page from executing its redirect in an iframe from another page. That just doesn't make sense. You need to put the link that you want in that iframe. You can't change code on page x from page y without using server side code, or editing page x's code.
    • [1] reply

    • That's what I'm trying to do is put a website in an iframe, what are you saying, that doesn't make any sense
      • [1] reply
  • theoretically you could drop the iframe and use PHP to scrape the page content you are trying to display instead...

    Search for PHP CURL Examples in Google

    Hope that helps...
  • If you are focusing on google better don't do it. Just a piece of advice
    • [1] reply
  • I'm on a mission to get that code
  • But that just keeps looping or redirecting the page over and over again
  • I'm on a mission to find that code, If I get it, traffic+rank=$$$$$$
  • [DELETED]
  • Let me know if anyone has any info on this
  • Google "anti frame breaker code"
  • I'm back, any updates on this yet
    • [1] reply
    • Hi, did you manage to get it resolve? If I read correctly, you have iframe injected with URL and want to prevent the origin URL to breakout of your iframe?
  • There is no 100% working anti framebreaker script... fact!
    • [ 1 ] Thanks
    • [1] reply
    • Hi Michael, I am referring to origin URL not framebreaker like linkbucks and adfly.

Next Topics on Trending Feed