You can block websites on a Microsoft Edge browser using Command Prompt, as there is no built-in feature for it in the browser.
You can easily block a website on Firefox — but you'll need to download the Block Site extension first.