Check if a URL is safe for visit