How to Block Access to a Specific Web Page
- 1). Open a text editor such as Notepad or WordPad. If you use Windows Vista or Windows 7, right-click the application and click "Run as administrator," or else this method does not work.
- 2). Open the "Hosts" file in the "C:\Windows\System32\Drivers\etc" folder.
- 3). Add a line to the end of the file (substituting in the web page you want to block for the example web page) with the text "127.0.0.1 www.example.com."
- 4). Save and close the hosts file. Your computer can no longer access the web page that you blocked.
Source...