Skip to main content

Questions tagged [hosts-file]

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.

0 votes
0 answers
62 views

Does a HOSTS file block a url even if it's called from inside a web page?

I edited the hosts file to include: 127.0.0.1 example.com # just an example of course I then used Firefox to go to a site that hosts ads from example.com and I still saw those ads, and ...
ispiro's user avatar
  • 1,591
3 votes
0 answers
92 views

Program bypasses file security settings

I'm trying to block a website with the hosts file, so programs need to be able to read the file for the blocking to work. Editing the file is easy. The blocking works just fine at first. Then when I ...
Migit's user avatar
  • 111
5 votes
1 answer
1k views

Why does Firefox refuse to load sites if there is an entry in the ‘/etc/hosts’ file in macOS 14.4.1 (Sonoma)?

If I make an entry in /etc/hosts for a site, Firefox (v125.0.3) refuses to load the site. I'm running macOS 14.4.1 (Sonoma). The entry in the /etc/hosts file is: 93.184.215.14 example.com www.example....
Eaten by a Grue's user avatar
0 votes
0 answers
71 views

How to safely change /etc/hosts file type from Unicode to ASCII on mac

I need to block some websites in hosts. But it didn't work, after modifying the file, I found it's in UTF-8 format instead of ASCII thanks to OSX Sierra hosts file is ignored How to safely change /...
CherryFlakes's user avatar
1 vote
2 answers
117 views

What happens when the hostname in a Windows 10 hosts file is an IP address?

Bit of a preamble: I've recently decided to play Assassin's Creed: Director's Cut on my Windows 10 PC. However, the game seemed to regularly freeze, making it unplayable. Based on my searches across ...
denabedu's user avatar
0 votes
1 answer
233 views

Hosts file comment format

I'm reviewing a hosts file on a windows machine and I noticed that in addition to obvious comments that start with a # character, it also has lines that are comments but start with two tabs (or in ...
Peter M's user avatar
  • 1,261
2 votes
2 answers
420 views

Disabling or Limiting Tor Functionality in Brave Browser on macOS

I'm seeking guidance on how to disable or limit the Tor functionality within the Brave browser on my macOS system. While I appreciate the privacy aspects that Tor integration provides, I have specific ...
Pedro Delfino's user avatar
0 votes
1 answer
271 views

dnsmasq reads addn-hosts config but ignores it, falls back to system's /etc/hosts

I'm running dnsmasq installed as a NetworkManager plugin on Fedora 39 machine My configs are: /etc/dnsmasql.conf (default, nothing changed): user=dnsmasq group=dnsmasq interface=lo bind-interfaces ...
vrs's user avatar
  • 101
0 votes
1 answer
1k views

Unknown entry in Hosts file (Windows) for geoip.pango-paas.co

I was going to add an entry in Hosts file to make it easy to connect with a server. But when I opened the C:\Windows\System32\drivers\etc\hosts , I saw an entry for (changed the real ip to xx below): ...
dev's user avatar
  • 1
0 votes
2 answers
264 views

Can I block a whole subdomain with one single localhost line?

I need help with my localhost file, I'm kind of confused & not used to this! I'd like to block a website, let's say google as a first example. google has multiple top level domains (.com, .fr, .co....
I'm Dumb And Curious's user avatar
0 votes
1 answer
563 views

How to properly modify host file?

I was able to modify my host file on my Windows 10 laptop by copying it onto my desktop, modifying it and then pasting it back to the system32/drivers/etc folder. I'm doing this to prevent me from ...
Jason's user avatar
  • 145
-1 votes
3 answers
3k views

Hostfile is not blocking this website why?

I am trying to block this website https://example.com/en/b9ah using the hosts file. I went to file explorer, This PC, Selected Windows, System32, drivers, Etc, Host File, copied host file and pasted ...
user avatar
2 votes
1 answer
581 views

/etc/hosts blocks instead of redirecting

I'm trying to redirect Facebook to localhost on Mac OS Ventura. This is my /etc/hosts hello procrastinator...% ...
mircealungu's user avatar
-1 votes
1 answer
219 views

/etc/hosts : Block the Entire Website but Enable One Folder

The below entry in C:\Windows\System32\drivers\etc\hosts file will block the site www.rauf.com. 127.0.0.1 www.rauf.com That's fine. Now I'm looking for more advanced control just with this file. I ...
Rauf's user avatar
  • 3,717
1 vote
1 answer
2k views

Change in 'hosts' file responds to ping but refuses to connect on any browser

I'm currently working on a project where I need to emulate the live site's URL's in order to properly communicate between the projects site, projects browser extension, and the projects database. To ...
Zane Wilson's user avatar

15 30 50 per page
1
2 3 4 5
26