Is there a best practice to validating user input links?

I have a text input field that once entered by the user we will be converting to an external hyperlink using the safeLink function. We are trying to figure how best to validate the contents of the text input field since safeLink doesnt work unless the enters http: or https: (if they do not enter in the http/https the formula redirects to a nonexistent Appian record vs URL).

 

Since the user may also be putting in links to intranet pages(SharePoint, local repositories, etc.), does anyone have an effective method for validating that text input values are valid external URLs outside of simply validating that the contents contain http/https?

 

Thanks in advance!

  Discussion posts and replies are publicly visible