AFN: validate the provided forge URL more extensively
Check that it is not a URL to a GitHub repo or website, is a canonical URL with a trailing forward slash and is a base URL rather than a repository or other URL.
Fixes: #4794 (closed) Fixes: #4792 (closed)