restrict url parsing