I have a product datafeed, but noticed a number of links don't redirect properly. Instead of going to the product pages, they just redirect to the homepage.

I could put up the feed and hope there ar just a few bad links or manually click on all 6,000 to check them (yeah right), but I thought there might be a way to have a php script do this.

Something where you provide a list of affiliate URLs and it would output a list of final destination URLs. Is this possible?