Better url file checking