Checking the existence of the url is not hard there is a lot of gems do that but i do not think we should over load simple view with many requests to just check the existence of the link. As well as the one who enters these link is a lecturer and in most cases it will be copy paste.

Removing $ from the end will match part of the link and if its rest is not valid it will also pass
like https::/blblb.com..