Adding protection to redirect path