Detecting invalid URL. Are you certain whatever you're doing is worth it?