1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

what redirect is this?

Discussion in 'General Scripting Chat' started by ShiftySituation, Aug 15, 2011.

  1. ShiftySituation

    ShiftySituation Power Member

    Joined:
    Apr 15, 2010
    Messages:
    621
    Likes Received:
    314
    Occupation:
    Having fun
    Location:
    Jacksonville, FL
    The page @ 12carloan.com has a delayed redirect which seems to happen after the page loads. I looked at the source and there isn't any javascript to do the redirect, so what is causing the page to redirect after it loads?
     
  2. facebookdude

    facebookdude Elite Member

    Joined:
    Feb 28, 2010
    Messages:
    1,506
    Likes Received:
    2,489
    It's a timed redirect. Google it, it's really easy to do.
     
    • Thanks Thanks x 1
  3. jbrewski

    jbrewski Junior Member

    Joined:
    May 12, 2011
    Messages:
    116
    Likes Received:
    32
    Location:
    USA
    <meta http-equiv="refresh" content="5; url=redirect_page_here.html">
    make sure this is in between the head tags ;)
     
    • Thanks Thanks x 1
  4. jbrewski

    jbrewski Junior Member

    Joined:
    May 12, 2011
    Messages:
    116
    Likes Received:
    32
    Location:
    USA
    **in that example, 5 is the amount of seconds to wait before the redirect.
     
  5. ShiftySituation

    ShiftySituation Power Member

    Joined:
    Apr 15, 2010
    Messages:
    621
    Likes Received:
    314
    Occupation:
    Having fun
    Location:
    Jacksonville, FL
    I looked up timed redirect in google and all I could find is javascript and meta redirect. There isn't any javascript on the page so it wouldn't be that. I didn't see any meta redirect coding on the page either... What am I missing here?
     
  6. ``Yousef

    ``Yousef Power Member

    Joined:
    Oct 16, 2009
    Messages:
    534
    Likes Received:
    286
    Location:
    Cooking up the medicine.
    Home Page:
    HTML:
    <script type="text/javascript">
    setTimeout(window.location="http://url.com",1000);
    </script>
    or

    HTML:
    <meta http-equiv="Refresh" content="1;url=http://url.com" />
    1000 is the time in milliseconds, which is equal to 1 second as shown in example 2.


    EDIT: Just took a look at the code. There's no JS redirect. There's no meta-redirect. PHP is server-side, and data can't be outputted after the headers (e.g. a redirect) is sent. If I were you, I'd just use a javascript/meta redirect.
     
    • Thanks Thanks x 1
    Last edited: Aug 15, 2011
  7. ShiftySituation

    ShiftySituation Power Member

    Joined:
    Apr 15, 2010
    Messages:
    621
    Likes Received:
    314
    Occupation:
    Having fun
    Location:
    Jacksonville, FL
    Yeah, no external js. It's some ghost redirect that I can't see!
     
  8. ShiftySituation

    ShiftySituation Power Member

    Joined:
    Apr 15, 2010
    Messages:
    621
    Likes Received:
    314
    Occupation:
    Having fun
    Location:
    Jacksonville, FL
    The page is an asp page and after reading, you can do Response.AddHeader() to inject the meta redirect after a delay. Would this cause the meta tag to not show up on the html code, even if viewing it from fiddler?
     
  9. ShiftySituation

    ShiftySituation Power Member

    Joined:
    Apr 15, 2010
    Messages:
    621
    Likes Received:
    314
    Occupation:
    Having fun
    Location:
    Jacksonville, FL
    Reason I want to do it this way is so I can have a page with backlinks on it for search engines and don't want to negatively effect that backlink juice with a contextually visual redirect.