You can block websites on a Microsoft Edge browser using Command Prompt, as there is no built-in feature for it in the browser.
To block a website on Windows 10, head to Microsoft's Family Safety site and log in with your adult Microsoft account.