The "hosts file" is a common tool in operating systems to map names to IP addresses. These mappings usually take precedence over the DNS system.

learn more… | top users | synonyms

0
votes
0answers
13 views

Windows 10 hosts file used by another process

There are a few other question with this same title but they do not solve my problem, so I am opening another one. I have set the permission for the "hosts" file to full access for the current user. ...
0
votes
0answers
14 views

Is it possible to apply parts of AdBlock+'s EasyList Adblocking list to the hosts file in any way?

I use AdBlock+ for Firefox, but I was wondering if it would be possible to apply AdBlock+'s EasyList filter to the Windows Host file. I doubt that that is possible because of the rules in the EasyList ...
2
votes
1answer
229 views

Would editing the hosts file temporarily block windows 10 updates?

Like several other people, I'm annoyed by the inability to choose when to update in Windows 10 Home, and this issue is one of the (several) reasons I hesitate to upgrade from 7. I don't have 10 yet ...
0
votes
0answers
19 views

Use /etc/hosts entry for nginx proxy_pass

I'm currently linking together a couple of Docker containers so I can create a reverse proxy using Nginx and the services running on those containers. An entry looks like this: location / { ...
2
votes
1answer
2k views

Edge browser error 'Hmm, we can't reach this page' loading localhost address

Microsoft Edge presenting error message 'Hmm, we can't reach this page' loading localhost address. Loopback flag is checked. Address mapped in host file 127.0.0.1 www.desenv OS: Windows 10 - ...
0
votes
0answers
43 views

Apache cannot resolve /etc/hosts entries without internet connection

I alias tw/twcdn.localhost to 127.0.0.1 in /etc/hosts: $ cat /etc/hosts 127.0.0.1 localhost.localdomain localhost hostname tw.localhost twcdn.localhost 192.168.1.2 benito-laptop ::1 localhost ...
0
votes
2answers
99 views

Why I can't redirect using `hosts` file in windows?

I want to go to www.Google.com when I enter 1.1.1.1 in my browser. So I think I must change hosts file under windows\system32\drivers\etc path in Windows to map this IP address to Google homepage. I ...
0
votes
0answers
82 views

Override localhost IP Adress in Windows 8.1

I'm trying to set up Windows 8.1 virtual machine through VirtualBox for testing a server running on my Mac (running Yosemite 10.10.3). VirtualBox sets up a the IP 10.0.2.2 to point to the host ...
1
vote
1answer
28 views

Linux/Windows hosts file

I need redirect the domain (www.pokus.cz) to my local IP address (192.168.1.100/preview) because I need to make a test of my new web pages. I read that it's possible with add lines in /etc/hosts/ When ...
2
votes
2answers
73 views

Is there a maxium number of hostname aliases per line in a Windows hosts file?

I have a hosts file on Windows 7 that has an IP address followed by 10 different hostname aliases. I can ping the first nine, but if I try to ping the tenth, I get Ping request could not find host ...
2
votes
2answers
198 views

Hosts file missing in Windows 8.1

I am missing my hosts file in Windows 8.1.  I couldn't find it in C:\Windows\System32\drivers\etc.  Here is what I see in that location: hosts.ics, hosts.old, lmhosts.sam, networks, protocol and ...
0
votes
1answer
31 views

how can I extract entries out of the HOSTS file with the command line tool in Windows 7?

It concerns the HOSTS file, Windows 7 Ultimate 64bit. I want all entries/lines with a certain name in it to be written in a .txt file. how can I do this in the command line tool?
2
votes
1answer
117 views

Alternative to 127.0.0.1 in hosts file

I have a bunch of websites blocked at the system level in my Windows 7 by using the etc/hosts file. So far, I've done it the usual way, by giving 127.0.0.1 as the website's IP address. However, I'd ...
1
vote
1answer
62 views

Windows 7 lookups on first host file entry

Today my ISP blocked my internet due to suspicious activity - outgoing requests to malicious websites. Numerous scans of my machine couldn't reveal the culprit. However, after doing a quick netstat /f ...
1
vote
1answer
39 views

change IP when a CNAME is used

I want to set 96.7.41.139 as IP address of download.microsoft.com I checked this post: http://serverfault.com/questions/452268/hosts-file-ignored-how-to-troubleshoot and set hosts as below. ...
2
votes
2answers
106 views

Eset Smart security finds my hosts file as threat and quarantines it

Everytime I edit my hosts file, Eset Smart security finds my hosts file as threat and quarantines it. It says the host files is a Qhost trojan. What should I do?
0
votes
1answer
42 views

Add hostname synonym

I'm attempting allow a hostname to used as synonyms for another hostname. For example : configure mymachine.com to be a synonym for localhost:8080 so if mymachine.com is navigated to in browser the ...
1
vote
1answer
48 views

why does my local hosts file enable me to see remote server php files?

I have a hosting package with some company. They give me a temporary URL at which I can access the site and see HTML files. But when I try to access PHP files it gave me an error (500 Internal Server ...
5
votes
0answers
195 views

Acrylic DNS Proxy not resolving

So I recently had an update issue where I landed up downgrading to Windows 8. As I need to do my work, I have re-installed my XAMPP server as well as Acrylic DNS Proxy. Unfortunately, Acrylic is not ...
2
votes
0answers
57 views

What more user-friendly options are available for overriding DNS than the HOSTS file? [closed]

I've used the HOSTS file for years to override DNS to allow me to view test versions of a site etc. running as if it were live. However, helping others who might want to see the site before it goes ...
0
votes
0answers
61 views

Single machine on my network can't load a specific website

One windows 7 machine on my local home network is having trouble loading www.reddit.com I'm on a hardline into a linksys e1200 router. Other devices (laptop, phone, etc) have had no issues (wireless ...
0
votes
0answers
157 views

Changes in hosts file doesn't work

On my Windows 7 machine, I have modified my hosts file and put an entry in there for an IP address but the issue is it only works with the short name, i.e. 105.47.67.17 MyMachine works by ...
0
votes
1answer
123 views

Block page with windows hosts file

I want to use the windows 7 hosts file (in C:\Windows\System32\drivers\etc\hosts) to block this page : play.chessbase.com/js/apps/playchess However, it is not working despite all these entries: ...
1
vote
3answers
2k views

Mapping one IP address to another in the 'hosts' file [duplicate]

The hosts file (%SystemRoot%\system32\drivers\etc\hosts) lets you make google.com point to, for example, 127.0.0.1 on your local machine, but what if I wanted to make, say, 192.168.1.5 point to ...
4
votes
2answers
524 views

Personal /etc/hosts?

/etc/hosts lets you set system-wide hostname lookups. Is there a place in OS X to set per-user hostnames? I use two user accounts on my laptop and I'd like to override IP addresses for just one of ...
0
votes
0answers
14 views

Is there an equivalent to the hosts file that is not system-wide? [duplicate]

Is there an equivalent to editing the hosts-file for ip to hostname mapping that is not global and system wide? Running FreeBSD.
0
votes
1answer
385 views

Hosts file redirect to domain [duplicate]

In the hosts file how do I make it instead of redirecting to an IP address redirect to either a domain(example.com) or a URL on an IP address(127.0.0.1/example.html)? I tried typing it in but it ...
1
vote
0answers
146 views

Create User Profile Specific Hosts File?

I know that by editing my C:\Windows\System32\drivers\etc\hosts file I can block any site, but I would like to take this a step further. Is it possible to have different version of this file for my ...
26
votes
3answers
8k views

Curl local host names on Mac OS X Yosemite

I just upgraded from Mavericks to Yosemite, and now curl can't see loopback host names. Set up a simple http server to test: $ python -m SimpleHTTPServer Serving HTTP on 0.0.0.0 port 8000 ... Now ...
1
vote
1answer
99 views

Block (nullroute?) an IPv6 hostname using /etc/hosts

I'm trying to prevent my web browser from communicating with certain hosts (mostly ads and tracking). I have a list of such hosts in my /etc/hosts file. For IPv4 I can do: 255.255.255.255 ...
1
vote
1answer
38 views

Is there such a thing as a web browser where you specify host and IP for testing new sites? [closed]

Does any Linux software exist where I can specify a host xyz.com and an IP. The browser will then request a page from that IP specifying that host, no DNS lookup will be performed. I regularly move ...
0
votes
2answers
833 views

Editing Host file to bypass a holding page

For the last two years I have secured Glastonbury tickets by editing my host file with: 194.168.131.174 glastonbury.seetickets.com This year, this has caused that particular website to be ...
0
votes
0answers
134 views

Cold Turkey not working with custom DNS server address

I blocked a few sites in cold turkey (http://getcoldturkey.com/) but after changing my preferred DNS, I discovered those rules weren't working. Is there a way to correct this?
0
votes
1answer
56 views

Replace local host file modification with remote. Proxy server or something else?

I need to find a solution for a problem described below (both servers running CentOS 6) My goal is to have visible website to the public where a client will type own domain name mydomain.com and then ...
0
votes
1answer
264 views

Host angularjs.org not found: 3(NXDOMAIN)

My MacBook Pro OSX 10.9.4 has network problems now, and I cannot figure it out what is causing the problem. Today I am not able to access angularjs.org with any browser, but I can access other ...
-4
votes
2answers
120 views

How to bypass hosts file? [closed]

My school issues us laptops, which obviously has filtering. But, the filters don't work at home. And somehow, they can't block Google+, even at school, so they just pointed plus.google.com to ...
2
votes
2answers
350 views

How to make Opera browser obey the etc/hosts file?

Current version of Opera browser doesn't obey etc/hosts file for domains outside the local network. It looks to me like it is using its own DNS resolver. For example if I create the following ...
0
votes
1answer
292 views

HOSTS file entries leading to permissions issues - Windows Server 2012

We have a HOSTS file that maps a document server to an IP address of the local machine, it looks similar to this: DocumentServer 10.xx.xx.11 The local IP address being 10.xx.xx.11 We are ...
3
votes
1answer
1k views

Editing hosts file to block sites not working

I put these lines in my C:\Windows\System32\drivers\etc\hosts file: 127.0.0.1 www.cnn.com 127.0.0.1 cnn.com 127.0.0.1 facebook.com 127.0.0.1 www.facebook.com 127.0.0.1 www.hotnews.ro 127.0.0.1 ...
0
votes
1answer
114 views

Blocking specific websites from browser (PC and phone) while preventing myself from unblocking them without content of others

I am trying to find a PC software (and app for phone) to block specific websites, and only the person with certain privilege (e.g. who knows the password) can unblock certain websites. (I haven't yet ...
-1
votes
1answer
307 views

Granting an Ampps privileges to edit hosts file

How could I grant an application such as Ampps privileges to be able to edit hosts file. I need such feature to easily handle local Vhosts using it. I use Windows 7 64 bit and Ampps ver. 2.4
-3
votes
1answer
85 views

Locking Windows hosts file by password or something [closed]

I want to stop distractions like facebook.com So I put 127.0.01 facebook.com It works and I do facebook less. But still I sometimes access hosts again and erases it to do facebook. Can I lock ...
16
votes
2answers
2k views

Could I access a blocked website via a virtual machine if the host OS has the web address blocked in its hosts file?

I was going through this Net Nanny article that mentioned about the various ways its web filter could be bypassed by kids. Among other methods, I saw this: One way that teens can get around the ...
0
votes
1answer
104 views

Where does Gas Mask store its data on OSX?

I use Gas Mask to manage my hosts file on OSX. Where does it store its data?
0
votes
1answer
77 views

Block specific url paths

I want to block a path (eg http://superuser.com/megasupersecret), but not the whole domain (http://superuser.com). In the host file, i've tested like this: 127.0.0.1 ...
1
vote
0answers
1k views

How do i make Chrome use an IPv6 address from my hosts file?

I have a Windows 7 machine that's running Ubuntu in a VM. The VM has an interface configured as an IPv6-only, host-only network. The network is statically set up, and all that seems to be working. ...
2
votes
3answers
2k views

Block all websites in Windows 8, except for 3

I would like to create a whitelist of 3 websites on a Windows 8 machine. All other websites would be blocked. This environment is not managed by a server, these will be just 2 independent boxes. One ...
1
vote
1answer
382 views

Tracking down edits to my /etc/hosts file

Every hour at :49, my hosts file is being replaced with the following: # Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file ...
0
votes
1answer
651 views

accessing remote server with name instead of ip address and port number

I have question regarding accessing my web application with some name,which is deployed on remote server. Currently, I using following URL http://160.110.67.181:8080/myapp So, I'm wondering ...
0
votes
2answers
49 views

Editing the OS X hosts file with a one-time password

I was wondering if there was a way to edit the host file using a "throwaway" password. I want to prevent myself from entering certain websites, but OS X doesn't not have a good alternative for Cold ...