I have a site where users can supply a URL of their choice.
I'm sure it's a security hole so what should I do to tighten that down without losing too much flexability?
If I were to leave it, how could I render a link or build a route such that I could link users externally? This doesn't work (of course):
<a href="@item.Location" target="_self">@item.Title</a>
javascript:alert("Wat!")can be disallowed without removing the protocol-part of the URL. Users should have the freedom to choose between givinghttp://orhttps://URLs, for example.