12

I found some articles related to this, but they were not sufficient for me. I want to know how the localhost works and why is it the same on many different machines?
How does the localhost block the access to the website when we use it in the host file to block the website?