A Script To Batch Extract Redirected Urls

Hello,

I am looking for script that allows me to enter a batch of urls (of one specific site) like this:

http://www.thesite.com/go.php?url=1
http://www.thesite.com/go.php?url=2
http://www.thesite.com/go.php?url=3

These links redirect to external websites. What I want the script to do is to extract the url it redirects to.

So for example if http://www.site.com/go.php?url=1 goes to http://www.google.com/, the script should extract http://www.google.com/

After it is done extracting…

Leave a Reply

Your email address will not be published. Required fields are marked *