How to block websites on windows using host file

SHARE:

Very often one needs to block some websites on on his PC. One solution is get a parental security application and block sites with it. But it costs and if you get one for free I promise it's more than what you are told i.e it may be a spyware, keylogger, adware or something like this. And one other way is simply persuade user to open that site but this isn't a guaranteed method. Then comes the use of host file modification. If you know about host file I will suggest you to skip to next section.

What is windows host file?

The hostnames connected to a network needs to be mapped to their corresponding IP addresses. This is done so to uniquely identify a particular system in a pool of systems connected to the Internet. This Windows Host file is responsible for providing this mapping function. Slight modifications made to this file can help you block the particular website. Well, now let us start discussing the process.

Block websites on windows by editing host file

Step 1: First of all you have to open notepad as administrator. To do so simply search windows for notepad and when found right click it to select "Run As Administrator".

Step 2: Now you have to click on menu followed by open. You can also simply click Ctrl+O to open the"Open Dialogue box ".
Step 3: Now browse the dialogue box to reach "C:drive\ Windows\ System32\ drivers\ etc"
Note: If you have installed your OS anywhere else than c drive then open above location in that drive.

Step 4: When you are on the location you won't see any file listed there but don't worry for the host file is one without any extension and notepad right then will show only those with *.txt  extension. Now to fox it just select "all files" from the drop down box just above open button.
Opening host file

Step 5: Now select host from the list of files appeared. Doing so will open it in notepad as a text file.Once it opens up as shown below, you will have to type the line 127.0.0.1 www.websitename.com to its bottom and hit the Enter button. Then save the File. Also see a list of useful keyboard shortcuts.
Editing host file

Now it's all set and here I have blocked the site www.shibuyamalaysia.com. Hope you met your requirement and now will got on with other tricks to boost your cyber knowledge.

About Rishabh Ryber

A cyber explorer and enthusiast who is working with computers since he was six. He appears with tricks related to internet, android, Windows, and iOS as well.

Follow him @ Google Plus | Facebook | Twitter

COMMENTS

Name

3d,1,4G net,1,Accessibility,5,Ads,1,Aircel,1,Airtel,3,Andriod tricks,9,Android,52,Android hacking,4,Android hacks,7,Android tips,3,Android trick,3,android tricks,7,Apple,2,audio tricks,1,BitTorrent,1,block adds in non rooted android phone,1,Blogging,1,Bluestacks trick,1,bootable Pendrive,1,Booting Linux,1,Bsnl tricks,1,BusyBox,1,bypass age verification on YouTube,1,C++tricks,1,caller tune,1,Camera,1,Change Your Name in Windows,1,chrome tricks,4,Cloud tricks,1,Command prompt,6,command prompt tricks,10,Cool Facebook Tricks,3,Cool Google hangouts Tricks,1,Cracked softwares,2,create new scheduled task in windows,1,Creators Update,1,Creators' Update,1,Customization,2,CyanogenMod,1,damaged screen,1,delete dial up connections in windows,1,Detecting keyloggers?,1,difference between WiFi and LiFi.,1,Disable JavaScript in Google chrome,1,disable snap options,1,Disable Windows Update's Automatic Restart,1,diskpart,1,Download Facebook Videos offline,1,drive,1,Editing zone,2,email tricks,1,Facebook,7,Facebook profile to page conversion,1,Facebook tricks,4,FB Tricks,3,firefox,1,free,1,Free Call,1,free net,4,Free recharge,1,free sms,1,Freecharge,1,game cracking,3,gaming,12,Get YouTube Red features on your iPhone,1,get YouTube red for free,1,gmail,2,Google,4,Google Account,2,google accounts,1,Google analytics tricks,1,Google maps,1,Google Now,1,google tricks,3,hack android remotely using Kali Linux,1,hacking,10,hacking tricks,2,Hacking using keyloggers,1,how to,1,How To Block Snip.to From Your Google Analytics Data,1,How to check for hacked wifi,1,How to download Facebook videos,1,How to enable full screen start in windows 10,1,How to find windows 10 version details,1,How to install android device drivers for any phone,1,How to Receive files in Dropbox from a non-Dropbox users with a URL?,1,How to root Android,1,how to take screenshots,1,How to Turn On or Off Automatic Device Driver Installation in Windows 10,2,Instagram tricks,2,Install device drivers of android phones.,1,internet,27,Internet Explorer,2,internet explorer tricks,1,internet tricks,11,iOS,6,iPad,2,iPhone,10,iPhone tricks,2,iTunes,1,Jio,4,JIO offers,1,Jio Phone,1,JIO Tricks,1,JIOPHONE,1,keyboard,1,Keyboard Shortcut,3,keyboard trick,1,Keyloggers,1,keyloggers complete guide,1,laptops,4,lenovo,1,LG G5,1,LiFi,1,Mac,1,Mac address spoofing,1,memory card,1,Messanger,1,movies,1,MS Word,2,Music,1,Notepad,1,Notepad tricks,1,ola trick,1,Pc,3,pc tricks,12,Play Music,1,PlayStore,8,Pokeman Go,1,Power iSO,1,Privacy,12,programming tricks,1,Protect wifi from being hacked,1,recover deleted files using Recuva,1,Recover permanently deleted files,1,Registery tweaks,6,Reliance,1,Rishabh Ryber,8,rooted,8,Rooting Android without PC,1,Rybersoft,11,Samsung,2,Scheduled tasks in windows,1,screen casting,1,screen recording,1,Security,1,setup keyloggers,1,Sharind files,1,Smart lock in lollipop,1,Smartphone,1,smartphone tweaks,1,social media,2,Special,15,Speed up Google chrome,2,Spying Whatsapp,1,Steps to find windows 10 build number and other details,1,tablets,1,tech guide,1,tech news,1,Telegram,4,tips,1,Torrent,4,trick,1,Tricks,3,Two Tweaks To Boost Up Google Chrome in Android,1,Universal Id And Password Of Alan Walker Website w41k3r.com,1,Unlimited call,1,usb tricks,4,Use face lock in android phone,1,use whatsapp on normal phone,1,Useful Registry tweaks by Rybersoft,1,uTorrent,2,vlc,1,VLC TRICKS,5,VPN,1,Watch age restricted videos,1,web,1,webbrowser,5,what is keylogger?,1,what is LiFi,1,whatsapp,8,Whatsapp hack,1,whatsapp tricks,2,Whatsapp Tricks.,2,Wi-Fi,4,WiFi tricks,5,windows,28,Windows 10,12,windows 10 snap disabling,1,Windows 10 tricks,9,Windows hacking,4,Windows Hacks,6,windows tricks,48,Windows Update,1,Xbox,1,Xiaomi,1,Xposed Framework,7,YouTube,2,YouTube tricks,5,
ltr
item
RyberSoft: How to block websites on windows using host file
How to block websites on windows using host file
https://3.bp.blogspot.com/-Gpj1IP7KXXw/Vwpp-hZviQI/AAAAAAAAAj0/DrSzPvNbrY8JwrbYKzNgW2tmHU-7sNn9w/s1600/all-files-open.png
https://3.bp.blogspot.com/-Gpj1IP7KXXw/Vwpp-hZviQI/AAAAAAAAAj0/DrSzPvNbrY8JwrbYKzNgW2tmHU-7sNn9w/s72-c/all-files-open.png
RyberSoft
https://www.rybersoft.com/2016/04/block-websites-on-windowtopic80.html
https://www.rybersoft.com/
https://www.rybersoft.com/
https://www.rybersoft.com/2016/04/block-websites-on-windowtopic80.html
true
1459016836896156319
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy