How to find if a URL redirects

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • theorymaster
    New Member
    • Jul 2007
    • 1

    How to find if a URL redirects

    Hello seniors,

    I am trying to build a web spider to classify spam. My question is how
    to find if a URL uses redirection (either JavaScript based or 301-307
    redirects). Any guidance would be greatly appreciated.

    Thanks!
    Anirudh Koul
    Last edited by pbmods; Jul 19 '07, 11:58 PM. Reason: Removed non-relevant link.
  • tscott
    New Member
    • Jul 2007
    • 22

    #2
    Hey,
    I looked around a bit, Couldn't really find any way. Especially for PHP redirects.
    I thought of something but it probelly won't work. Recording the current location then setting a timer and then checking it again and recording the second URL. I doubt this would work though unless of course it was on your own server. My best advice would be to browse around php.net. See if you can find anything, Maybe look a little at CURL functions.
    ~Tyler

    Comment

    Working...