You can easily block a website on Firefox — but you'll need to download the Block Site extension first.
To block a website on Windows 10, head to Microsoft's Family Safety site and log in with your adult Microsoft account.