As we have seen, as is so often the case, in this case too several paths lead to the goal. The bottom line is that the browser-specific extensions are just as effective as the solution via the Windows Hosts file, and they also offer a number of additional functions. However, when it comes to blocking websites specifically and across browsers, then modifying the Windows Hosts file is the safest way.
Especially since you also have the advantage that only a few people know that this file exists in Windows and what you can do with it. An extension for the browser, on the other hand, is easy to find even for inexperienced users and can be deactivated.
However, it can be difficult to block pages with pornographic content, especially with regard to the protection of minors, since there are an almost innumerable number of URLs here. Modifying the hosts file would only take effect here if you entered all pages with such content as blocked. But since this is rather unrealistic, in these cases the only option left is to use an extension that specifically specializes in blocking pages with pornographic content.
PS: Even if we did not describe it in more detail in this tutorial, there are of course the same options for specifically blocking websites via extensions on the Mac with Safari. And you can also find a hosts file under Mac iOS at the address: “sudo / bin / cp / etc / hosts / etc / hosts-original” in which websites can be blocked with the same changes as under Windows.