Hello, In general, using hosts file to limit the accessing, just add a line to the end of the file using 127.0.0.1 and put the website name you want to restrict. Make sure you have added the line correctly. You can rerefer below link for more information: https://www.businessinsider.com/guides/tech/how-to-block-a-website-on-windows-1
---If the Answer is helpful, please click "Accept Answer" and upvote it.