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!

How To Edit Your Hosts File

Mile

Registered User
Downloaded
93.1 GB
Uploaded
735.6 GB
Ratio
7.91
Seedbonus
2,152
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 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.


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



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

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


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


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


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



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


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

Moderator
Retired Veterans
Downloaded
175 GB
Uploaded
11.1 TB
Ratio
64.85
Seedbonus
88,710
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 :(
 

harry hole

Registered User
Downloaded
110.9 GB
Uploaded
206.9 GB
Ratio
1.87
Seedbonus
305
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
Downloaded
19.8 GB
Uploaded
1.1 TB
Ratio
55.21
Seedbonus
10,422
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

Registered User
Downloaded
28.5 GB
Uploaded
10.5 GB
Ratio
0.37
Seedbonus
76
THANK YOU FOR THIS IMPORTANT INFORMATION
 

Jaymes Dean

Registered User
Downloaded
0 bytes
Uploaded
5 GB
Ratio
-
Seedbonus
0
Thank you. As of today it is the very first time that i have edited a hosts file...
 

KooMulee

Registered User
Downloaded
28.5 GB
Uploaded
10.5 GB
Ratio
0.37
Seedbonus
76
the tutorial is very superb. the impart of the tutorial is overwhelming. continue with the good work dear man. thank you so much.
 

Victor24

Young Guns===)>™
Verified Member
Downloaded
52.3 GB
Uploaded
1.4 TB
Ratio
27.15
Seedbonus
12,857
this tricks works well! However, using proxy will make a difference, and make another story.
 

Iceman96

Verified Member
Downloaded
10 GB
Uploaded
11.2 TB
Ratio
1141.67
Seedbonus
11,500
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?
 
Loading...
Top