0
votes
1answer
42 views

automatically add entries to hosts file

I have a hosts file on my dropbox in which I create shortcuts to all kinds of ip's that I use often (server dev is added as d, stackoverflow is added as so and so on). Over time I have built quite a ...
0
votes
1answer
89 views

Why won't Windows hosts file block websites?

I'm trying to block a website because someone keeps downloading crap from this website and it's spyware. I tell them it's spyware and they download it anyway. So I'm trying to block it via the hosts ...
2
votes
0answers
61 views

Host hacks when no access to hosts file

I would like to test website where public DNS name is not changed yet. In order to to do that I need to change hosts file on the workstation but the domain security policy prevents me to do so. Is ...
0
votes
1answer
147 views

Redirect all HTTP requests to a website

How to configure windows to open the same static html page for all HTTP browser request. For example if the user types http://www.google.com, my static Index.html will be shown.
0
votes
1answer
210 views

How can I redirect a URL with sub-dir to a specific IP address using the Windows HOSTS file?

I want to redirect "www.example.com/sub-dir" to a specific IP, using Windows hosts file. Not just the domain but the domain + sub directory.
0
votes
1answer
99 views

Split HOSTS file used by Microsoft TCP/IP for Windows

I have a file called hosts located at: %systemroot%\system32\drivers\etc I want to create two partial file of a single one. So that, I can add my entries each time to a new file without having ...
0
votes
1answer
72 views

Hosts redirection not working properly

Simply put, I want to redirect uk.wikipedia.org to en.wikipedia.org. I put this in the hosts file on windows, saved it, and flushed the DNS cache: 91.198.174.225 uk.wikipedia.org But when I ...
1
vote
1answer
1k views

What's the Windows equivalent of “/etc/hosts”? [duplicate]

Possible Duplicate: How do I block certain websites from being accessed through a browser? I can block my little brother from accessing a website on my Mac by adding the following line to ...
2
votes
1answer
374 views

'Canonical' way to block websites in Windows 8 without using hosts

In Windows 8, Microsoft has (rightly) decided that Windows Defender will prevent modifications from being made to the %WINDOWS%/System32/Drivers/etc/hosts file. This is an attempt to prevent trojans ...
3
votes
1answer
703 views

How to block IP Address via Windows Host

I want to block access to a certain ip address via windows host. This is the ip address 41.190.8.17. And this is the content of my host file. # localhost name resolution is handle within DNS ...
0
votes
1answer
62 views

find out which program edited my hosts file

I have this line in my hosts file: x.x.x.x www.google.com For many times, I saw this line missing from my hosts file while everything else in it stayed untouched. in this case I would add this line ...
3
votes
2answers
969 views

Unblocking blocked site with hosts file

I have www.somesite.com blocked in my country. But I have another domain www.another.com that points to the same server and it's not blocked (Apache Virtual Host) and works fine. I put an entry in ...
0
votes
0answers
154 views

machine ignoring host file?

So I can ping the IP address for the server I need but when I ping it by name, the server name is followed by an incorrect IP address. My host file is updated, I can communicate with my machine from ...
1
vote
2answers
134 views

How to use multiple localhosts

On my local development machine (Windows 7), I am using IIS and XAMPP to develop websites. Because it is unclear when I have multiple websits running, I am tried to rewrite the hosts file ...
0
votes
5answers
232 views

How can I create shorter URLs to sites on my computer?

I was wondering if I could use my Windows 7 hosts file to create shorter URLs for sites? OR is there another way. I tried ones like the following but I'm guessing it only works with IP Addresses? ...
2
votes
1answer
261 views

How can I prevent users from circumventing the Windows hosts file?

I realized Windows hosts entries can easiliy be circumvented by just setting a system proxy or use a webproxy like hide my ass. How can prevent my kids from circumventing my hosts file that blocks ...
3
votes
2answers
837 views

Quickly edit / change hosts file on Windows

I routinely need to add / remove / update hosts on a Windows 7 machine to add links to staging / test servers. On Mac I can use ghosts with the syntax ghost add staging-server.local ...
3
votes
2answers
321 views

Windows - hosts file resets without my interference

I have a pretty long list of time-wasting sites in the hosts file and it is working just fine, however I'm experiencing a very strange behavior - every day or two (my PC turns on automatically every ...
3
votes
4answers
12k views

Permissions for editing hosts file on Windows 7 Home Edition

I am running Windows 7 Home Edition on my laptop. I also have an instance of Apache Server running and am trying to create a virtual directory. I have updated apache's vhost-httpd file and now need ...
4
votes
2answers
4k views

How to reroute all traffic using hosts file?

Is there a way to redirect all traffic to one IP in the hosts file? If not, how else could i achieve this?
4
votes
3answers
3k views

Resolving UNC path using hosts file

I'm having a problem accessing a UNC path in Windows Server 2008 using the hosts file. My hosts file looks like: 10.x.x.x server_1 When trying to access the unc path: This works: ...
1
vote
2answers
524 views

What tools exist to override an IP from a DNS lookup per browser?

Up front: the per browser (or per process, if you will) part is the important part here. I'm well aware of the /etc/hosts(and its Windows counterpart), but would like to avoid this system-global ...
2
votes
2answers
3k views

Windows Script Host Error Dialog Popups in the morning

A few days ago when I resume my computer from sleep mode in the mornings I would see an error dialog from "Windows Script Host" that read: "There is no script engine for file extension ".vbs". I am ...
0
votes
2answers
567 views

I've lost rights to edit files in folder etc

C:\Windows\System32\drivers\etc\hosts I'm updating the hosts file on regular basis but suddenly it stopped working and now asks for admin rights even though I am administrator. I've modified and ...
2
votes
3answers
17k views

Why is “127.0.0.1 localhost” needed in HOSTS file?

I disabled all my network connections and deleted 127.0.0.1 localhost in HOSTS file but cannot find what had I broken by it. My IIS and MS SQL Server 2008 R2 continues to resolve localhost just fine ...
3
votes
5answers
10k views

Hosts File not working correctly

I'm having some issues with my hosts file. 127.0.0.1 localhost 127.0.0.1 whatever 127.0.0.1 sub.localhost 127.0.0.1 example.com localhost and whatever both work. However the others have weird ...
1
vote
2answers
846 views

Load local file in place of remote file (HTTP) address in Windows

I am trying to achieve something that you might typically use a hosts file for, but that isn't suitable here. I want a Windows PC to refer to a local file (I can serve it from a web server at ...
2
votes
3answers
3k views

hosts file for ip address

I would like to map ip address to specific localhost interfaces (e.g. 23.45.66.77 => 127.0.3.3). For named hosts I can use the hosts file. Naturally this doesn't work for IP address. This has to work ...
8
votes
6answers
26k views

Using wildcards in names in Windows hosts file

Is there a way to create a wildcard domain in the Windows hosts file. I tried this xxx.xxx.xxx.xxx *.somedomain.com This does not work, is there maybe some other syntax I should use? I am ...
3
votes
4answers
3k views

Block website on Windows without host file

Is it possible to block website on Windows without modifying hosts files? The reason I do not want to use it is that users need administrator options to modify it. I need some easier way to block a ...
0
votes
0answers
174 views

Hosts entry for a fileserver don't work, why? [duplicate]

I have several entries in my hosts file (c:\windows\system32\drivers\etc\hosts) for some servers with MS SQL Server. Does this work for fileservers (a first quick tests failed, Why)? Edit: Access ...
0
votes
1answer
527 views

is using Hosts for resolving a sql-server more performant?

we have a legacy application which uses a access.mdb with hundreds of ODBC-connected tables on a sql-server. the access.mdb contains nothing else than these odbc-connections. Now we consider to use a ...
2
votes
4answers
2k views

Redirect browser to different host and port

Background, Running windows 7, FF3.5, and am an admin. I recieve emails from an internal company service that has links. The problem is the links don't work from my office. If the resource is ...
4
votes
2answers
2k views

Should I restart a service or a interface to apply Windows' hosts configuration file changes?

After I change the file %SystemRoot%\system32\drivers\etc\hosts Should I restart something?
2
votes
1answer
1k views

Using Proxy Server to act as hosts file

I am trying to see if I can have a specific Hosts file that only a Proxy Server application on my machine will use while the remainder of the machine uses the normal proxy server. For example, I want ...
3
votes
5answers
6k views

Possible reasons WINDOWS\system32\drivers\etc\hosts is not working (appart from the obvious)

Here's my C:\WINDOWS\system32\drivers\etc\hosts file: 127.0.0.1 localhost 192.168.100.1 router testing it: C:\>ping router Ping request could not find host router. Please check ...
3
votes
5answers
2k views

Editing the HOSTS file

I'm looking to edit the Windows TCP/IP hosts file (at c:\windows\system32\drivers\etc\hosts). I'm wondering, what is the best way to do this (WinXP)? Let's say that I want to redirect, say, the site ...