Team OS : Your Only Destination To Custom OS !!

Welcome to TeamOS Community, Register or Login to the Community to Download Torrents, Get Access to Shoutbox, Post Replies, Use Search Engine and many more features. Register Today!

Tips & Tricks How To Edit Your Hosts File

Mile

Member
Downloaded
93.1 GB
Uploaded
735.6 GB
Ratio
7.91
Seedbonus
2,152
Upload Count
29 (28)
Member for 8 years
Hello all! :hi:

In this thread, I will show you how to edit your host files.
Special thanks and credits to howtogeek, who was the original uploaders of this tutorial!
Let's start:

how-to-edit-hosts-file-4realtorrentz.png

How To Edit Your Hosts File:

On occasion you will need to edit the hosts file on your machine. Sometimes because of an attack or prank, and others so that you can simply and freely control access to websites and network traffic.

Hosts files have been in use since ARPANET. They were used to resolve hosts names before DNS. hosts files would be massive documents used to aide the network name resolution.

Microsoft kept the hosts file alive in Windows networking which is why it varies very little whether used in Windows, OS X or Linux. The syntax stays mostly the same across all platforms. Most hosts files will have several entries for loopback. We can use that for the basic example for the typical syntax.

The first part will be the location to redirect the address to, the second part will be the address that you will want to redirect, and the third part is the comment. They can be separated by a space, but for ease of reading are typically separated by one or two tabs.

Code:
127.0.0.1 LOCALHOSTS #LOOPBACK

Now let’s look at accessing the hosts files in the different operating systems…

Windows 8 or 8.1 or 10:

Unfortunately Windows 8 or 10 makes it annoying to open apps as administrator — but it’s not too difficult. Just search for Notepad, then right-click on Notepad in the search results list, and choose to run it as administrator. If you’re using Windows 10 this will be on the Start Menu.

ximg_52e68b62d824b.png.pagespeed.ic.Efnl0Yd4AP.png

If you’re using Windows 10, it’ll look more like this:

650x289xWindows_103-650x289.png.pagespeed.ic.ZY7RkBq15x.png


Once you’ve done so, open up the following file using the File -> Open feature.

Code:
C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS

650x349xWindows_104-650x349.png.pagespeed.ic.6-KZi6lP75.png


Then you can edit as normal.

Windows 7 (Bascially same for vista):

To access the hosts file in Windows 7 you can use the following command in the Run Line to open notepad and the file.

Code:
NOTEPAD C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS

455x263xsshot20100831194119.png.pagespeed.ic.euzFWd0bj4.png


Once notepad is open you can edit the file. In this example we will block Facebook. To do this just enter in the following after the # mark.

Code:
0.0.0.0    WWW.FACEBOOK.COM

637x414xsshot20100831205149.png.pagespeed.ic.X1hUmP29Dr.png


Now that you have edited your Hosts file make sure to save it.

637x414xsshot20100831205407.png.pagespeed.ic.WVRj49uvwg.png


Now notice if we try to access Facebook in IE we can’t get to the page.

588x380xsshot20100831205644.png.pagespeed.ic.a5yB2u-4IR.png

And that's it! ;) Hope you liked it! :) And as I said, all the credits are going to howtogeek, for making the threads!

Regards,
howtogeek and @Panagi0tis :cool:
 
Last edited:

SiteWizard

Uploader
Power User
✅ Verified Member
Member
Downloaded
224.8 GB
Uploaded
31.1 TB
Ratio
141.82
Seedbonus
645,256
Upload Count
12 (12)
Member for 9 years
Very good tutorial my friend ,
but i don't have this problem with that :)
I only have problems with saving the file ...
it just don't let me safe it even when i'm doing it as a admin...

i have exit all protection software to edit the host file and still it don't let me safe it :(
 

rirusstea

Member
Downloaded
5.9 GB
Uploaded
11.5 GB
Ratio
1.97
Seedbonus
10
Upload Count
0 (0)
Member for 7 years
Good one
 

Harry Hole

Power User
✅ Verified Member
Member
Downloaded
452 GB
Uploaded
2.6 TB
Ratio
5.98
Seedbonus
59,833
Upload Count
0 (0)
Member for 9 years
Very good tutorial my friend ,
but i don't have this problem with that :)
I only have problems with saving the file ...
it just don't let me safe it even when i'm doing it as a admin...

i have exit all protection software to edit the host file and still it don't let me safe it :(
worked in win 10 for me :) try using notepad ++ sure i have had a similar prob in win 7 when using hosts workround for adobe

deleted the facebook link and saved using notepad++ this also worked hope this was of help
 
Last edited:

*duxi2k*

✅ Verified Member
Member
Downloaded
25 GB
Uploaded
1.3 TB
Ratio
53.41
Seedbonus
3,193
Upload Count
0 (0)
Member for 8 years
It look interesting, only i am not sure for what purpose (besides locking sites like facebook to be opened) it can be used for?
Would you, please, give some more examples?
Thank You!
 

KooMulee

Power User
Member
Downloaded
45.8 GB
Uploaded
112.7 GB
Ratio
2.46
Seedbonus
2,691
Upload Count
0 (0)
Member for 7 years
THANK YOU FOR THIS IMPORTANT INFORMATION
 

Jaymes Dean

Member
Downloaded
0 bytes
Uploaded
5 GB
Ratio
-
Seedbonus
0
Upload Count
0 (0)
Member for 7 years
Thank you. As of today it is the very first time that i have edited a hosts file...
 

KooMulee

Power User
Member
Downloaded
45.8 GB
Uploaded
112.7 GB
Ratio
2.46
Seedbonus
2,691
Upload Count
0 (0)
Member for 7 years
the tutorial is very superb. the impart of the tutorial is overwhelming. continue with the good work dear man. thank you so much.
 

BasTijs

Member
Downloaded
0 bytes
Uploaded
5 GB
Ratio
-
Seedbonus
0
Upload Count
0 (0)
Member for 7 years
nice tutorial
 

SanMir

Uploader
✅ Verified Member
Member
Downloaded
97.4 GB
Uploaded
6.7 TB
Ratio
70.54
Seedbonus
27,091
Upload Count
133 (144)
Member for 5 years
this tricks works well! However, using proxy will make a difference, and make another story.
 

Mr. Spacely

🤴 Super Admin
Uploader
Downloaded
153.9 GB
Uploaded
43.8 TB
Ratio
291.19
Seedbonus
12,530,127
Upload Count
10982 (10982)
Member for 8 years
Very good tutorial my friend ,
but i don't have this problem with that :)
I only have problems with saving the file ...
it just don't let me safe it even when i'm doing it as a admin...

i have exit all protection software to edit the host file and still it don't let me safe it :(
Same here probablly system premission error?
 

Gollapudi

No time for myself due to work load
Uploader
✅ Verified Member
Member
Downloaded
2.1 TB
Uploaded
429.7 TB
Ratio
204.63
Seedbonus
153,601
Upload Count
843 (830)
Member for 7 years
Same here probablly system premission error?

worked in win 10 for me :) try using notepad ++...deleted the facebook link and saved using notepad++ this also worked hope this was of help
 
Top