I am trying to wget a list of urls (images) some of them no longer exist and the host redirect to a generic "this image doesn't exist" page, of which I know the url of. I would like to wget the file unless it 302's to this domain, is it possible.
I can stop it getting the file if any redirects with the --max-redirect=0
flag, but this may stop getting real images if I hit a mirror