How to block website in windows without using programs

Hello & welcome to Computer Tips
Here I’ll show you how to block any website without using programs
Go to  %SystemRoot%\system32\drivers\etc\hosts
Open the hosts file using notepad
In a new line  type “127.0.0.1”  , leave a space then enter the url of the website u want to block
Save the file
Note: if it was ur first time ,save the file in an new location (without any format) & then overwrite the existing hosts file
Now the website is blocked if u want to unblock the website just delete the line in the hosts file & save it
Note: only the url will be block but the subdomains will still be accessible
If you have any question leaves it in the comments below

1 comment:

  1. we highly recommend a powerful Soft Subtitle to Hard Subtitle Converter tool called iDealshare VideoGo which can easily hardcode subtitles to MP4, AVI, MKV, MOV, MPG, VOB, WMV and etc.https://www.idealshare.net/hardcode-subtitles.html

    ReplyDelete