Try downloading a file somewhere that you know will never move ( www.google.com ) and whose contents you already know (this is the hard part).
Compare the downloaded content with the content you want to download, and you will find out whether you are on any authentication page or not.
source share