0
votes
1answer
14 views

Windows - make hosts file affect ICS

I am running an Ad Hoc Wi-Fi network (Hosted network using Microsoft Virtual WiFi Miniport Adapter) on my PC. I used ICS (Internet Connection Sharing) to link my existing Wi-Fi connection through to ...
0
votes
3answers
31 views

What is writing to my hosts file?

I've got an odd situation where I'm emptying out my hosts file but when I ping something that used to have an entry in the hosts file the hosts file gets populated with the entries that I've just ...
-1
votes
0answers
28 views

Conditionally using windows hosts file?

Is there a way to bypass hosts file, but only if the request sent a param? If not, is there something that can mimic this behavior?
0
votes
0answers
28 views

redirect from one site to another

To avoid spending time on the internet I decidet to block several time wasting web sites I added rule redirecting several pages to localhost changine file C:\Windows\System32\drivers\etc\hosts I ...
0
votes
1answer
48 views

With a hosts file Chrome takes too long to realize that 0.0.0.0 isn't real

So i have a hosts file with many links set to 0.0.0.0, and a lot of times when i go to websites, Chrome is taking too long "waiting for googlesyndication.com" (ad sites that i put in the hosts file) ...
1
vote
0answers
3k views

windows 8.1 update disabled local website for IE

I use the Windows hosts file to resolve domains for websites on my local IIS. It worked great under Windows 8. I just updated to Windows 8.1 and none of my local sites will resolve in IE11. Even ...
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 ...
1
vote
4answers
1k views

Why do we need hosts file?

DNS resolves the domain names to IP address then why do we need hosts file in our machine with domain name -> IP address mapping? One disadvantage is that the ip address could change. Is there any ...
0
votes
2answers
329 views

Forbid connection to IP address in hosts file doesn't work?

The hosts file is used to map hostnames to IP addresses. However, I only have an IP address. I tried using HostsMan, but it doesn't want to even add the line. How do I add a line to the hosts file ...
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
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 ...
3
votes
2answers
1k views

How can I redirect HTTP requests to use HTTPS?

Is it possible to automatically redirect HTTP to HTTPS? Can I amend my host file in such a way that when I visit http://www.hsbc.co.uk it will redirect me to https://www.hsbc.co.uk? or is there ...
1
vote
5answers
1k views

Why does this line in the hosts file not work to block access to this site?

I've tried adding the following line to my hosts file in Windows 7: 127.0.0.1 nytimes.com The hosts file is located in: C:\Windows\System32\drivers\etc\ The idea is to block access to the New ...
2
votes
3answers
140 views

How dangerous is it to translate IPs directly via hosts in Windows

Sorry for the inconvenience, as English is not my native. I use hosts to access some websites as DNS is polluted. My question is, take www.google.com as an example. If I am successfully social ...
3
votes
4answers
3k views

Expected behavior with duplicate NT hosts file entries?

I know that you shouldn't have duplicate entries in your Windows NT hosts file, windows\system32\drivers\etc\hosts, but what is the expected behavior if you have them? You can have multiple entries ...
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?
2
votes
1answer
1k views

IE ignores hosts file; works in Firefox

I've edited my hosts file in a Windows 7 VM, but it doesn't work in IE. It works with Firefox, though. I hope this itemized list will help more than a verbose description. Environment Windows 7 in ...
1
vote
1answer
247 views

How can I disable connections to specific domains? [duplicate]

Possible Duplicates: Good free internet filter Using wildcards in names in Windows hosts file I'd like to block connections to specific domains. I know about the HOSTS file on Windows, ...
4
votes
1answer
3k views

Windows hosts file equivalent on Mac?

I am doing a project and uploading to a clients test server, however they only have IP address to access and suggested editing my hosts file. I'm on a Mac, where is the hosts file?
1
vote
0answers
144 views

Hosts file in windows 7 [duplicate]

Possible Duplicate: Problem with the hosts file under windows 7 I'm using Windows 7 Pro. I'm trying to add a new entry to Hosts file. But that entry doesn't seem to work. Browse to ...
5
votes
4answers
1k views

Windows redirect traffic to different DNS name not fixed IP address (hosts file equivalent)

Using the Windows hosts file, one can redirect traffic for a domain to a specific IP address, e.g. domainA.com --> 127.0.0.1 I am looking for a SIMPLE way to do the same, but for a target domain ...
1
vote
2answers
668 views

Global Hosts file WINDOWS [duplicate]

Possible Duplicate: Can I have Windows use additional HOSTS entries from a file server? How can I set up a global windows hosts file on my network. I have a server store the file on.
0
votes
1answer
202 views

Can I have Windows use additional HOSTS entries from a file server?

I have a network of computers and a server. I often need to edit the hosts file of all the computers to add a new entry or to change one. e.g. 192.168.1.101 temporary-internal-site How can I get ...
1
vote
2answers
839 views

How to block a specific site's directory in windows?

How can I block a specific directory of a website as e.g. http://example.com/someSite unfortunately the hosts file is not an option since you can only block whole domains there and any "/" just ...
0
votes
2answers
372 views

Does the event log show when a Windows hosts file has been changed?

It seems like someone has been tampering with a hosts file on a client server (they have multiple sites hosted on their server which are managed by different users) Today one of our services stopped ...
1
vote
2answers
3k views

Can regular expression be written in /private/etc/hosts file

abc.local xyz.local dumy.local www.google.com local.testserver.net .... Can we write some kind of regular expression or Rule in "hosts" file to redirect certain domains ending .local to certain ip ...
7
votes
3answers
1k views

How do you edit hosts file on Windows 7

I'm trying to edit the hosts file (C:\Windows\System32\drivers\etc\hosts), because I want to setup a local redirect for my website (like I've always done in XP). However, I can't save the changes! I ...