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

How To Capture All Intermediate URL in a Redirect...

Discussion in 'BlackHat Lounge' started by TimeToGo, Aug 5, 2013.

  1. TimeToGo

    TimeToGo Regular Member

    Joined:
    Jun 15, 2013
    Messages:
    224
    Likes Received:
    246
    I have a list of URL using multiple redirection like this:
    url1=>url1redirect1=>url1redirect2=>url1redirect3=>url1final
    url2=>url2redirect1=>url2redirect2=>url2final
    ...

    Is there a way to capture all intermediary urls and the final url
    and export them into a neat csv file like this:

    url1,url2,url3,
    url1redirect1,url2redirect1,url3redirect1,
    url1redirect2,url2redirect2,url3redirect2,
    url1redirect3,url2final,url3redirect3,
    url1final,,url3redirect4,
    ...
     
  2. TheeAriGrande

    TheeAriGrande Regular Member

    Joined:
    Jul 14, 2013
    Messages:
    270
    Likes Received:
    151
    Location:
    Candlestick Park
    What language are you using?

    You could possibly POST or GET the chain of urls. This requires you to have code on each page you want to use in the chain.

    The CSV generation is easy. It's identifying the chain of URLs that's difficult.
     
  3. TimeToGo

    TimeToGo Regular Member

    Joined:
    Jun 15, 2013
    Messages:
    224
    Likes Received:
    246
    No, I don't own all the website in the redirection.
    Some of them are third party tracking software.
     
  4. TheeAriGrande

    TheeAriGrande Regular Member

    Joined:
    Jul 14, 2013
    Messages:
    270
    Likes Received:
    151
    Location:
    Candlestick Park
    There's no way to track it then.
     
  5. TZ2011

    TZ2011 Senior Member

    Joined:
    Jun 26, 2011
    Messages:
    832
    Likes Received:
    864
    Occupation:
    Cleaning servers
    It is easy to track redirects with some software such as Http Analyzer or Fiddler but automated export of each hop in chain would not be easy, I guess.
     
  6. TheeAriGrande

    TheeAriGrande Regular Member

    Joined:
    Jul 14, 2013
    Messages:
    270
    Likes Received:
    151
    Location:
    Candlestick Park
    Not sure if you're trying to track the chain on your computer or someone else's computer. If it's yours then it'll be easy to track. If it's someone else's then it'll be very difficult.
     
  7. bambu

    bambu Newbie

    Joined:
    Oct 12, 2012
    Messages:
    39
    Likes Received:
    22
    I can't hyperlinks yet since I am a new member, but if you do a search for "310 redirect tracker" on Google the first result will allow you to track the 301 redirects. You will have to do them one by one though.
     
    • Thanks Thanks x 1
  8. TimeToGo

    TimeToGo Regular Member

    Joined:
    Jun 15, 2013
    Messages:
    224
    Likes Received:
    246
    Here's bambu link for those who need it:
    http://www.wheregoes.com/

    It can only track 1 url at a time though.
     
  9. TZ2011

    TZ2011 Senior Member

    Joined:
    Jun 26, 2011
    Messages:
    832
    Likes Received:
    864
    Occupation:
    Cleaning servers
    I think I have found redirect logging solution

    Code:
    http://stackoverflow.com/questions/3799134/how-to-get-final-url-after-following-http-redirections-in-pure-php
    but even if this works like expected, exporting of results would take some coding hours. Are you ready to pay for solution or you just want to know is it possible ?