Refined redirect detection