Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [hosts-file]

The tag has no usage guidance.

-1
votes
1answer
41 views

How to block website with the particular ip address using host file

I have blocked websites for a user in Lan environment through changing host file on his pc. like this- 127.0.0.1 youtube.com (Succeded). But i want that if user use other ip address (mobile hotspot or ...
0
votes
1answer
67 views

Is it possible to spoof the user agent of any application?

I love using .torrent files instead of file hosting sites like Mediafire and google drive because of their lack of support for larger files. However, even with a VPN your User Agent is still ...
1
vote
0answers
50 views

Does the Steven Black hosts file make ad/tracking blocking browser add-ons unnecessary?

Does using the Steven Black hosts file make ad/tracking blocking browser add-ons more or less unnecessary, since it stops requests to ad/tracking servers at the kernel level? Reasons I can think of ...
2
votes
1answer
130 views

Certificates for localhost, MITM Attack

Excerpt from https://letsencrypt.org/docs/certificates-for-localhost/ You might be tempted to work around these limitations by setting up a domain name in the global DNS that happens to resolve to ...
3
votes
1answer
179 views

What is the point of blocking a potentially malicious domain by binding it in the hosts file to 0.0.0.0 rather than 127.0.0.1?

tl;dr: In order to prevent a potential use of our computers to mine crytpocurrencies, I and a few other people were advised to append this: https://github.com/hoshsadiq/adblock-nocoin-list/blob/master/...
9
votes
1answer
924 views

Does Windows Update modify Hosts file?

I have Avira installed with Hosts file protection enabled. I've noticed a pattern where Avira warns me of an attempted modification of the Hosts file (but alas doesn't tell me which process did the ...
22
votes
4answers
6k views

Is it unsafe to use /etc/hosts file as a website blocker in the following manner?

I'm a linux noob, and while looking for a simple OS-level website blocking technique, I came upon the solution of using the linux hosts file like so: 127.0.0.1 websiteiwanttoblock.com 127.0.0.1 ...
-1
votes
1answer
425 views

How can adding a line to your hosts file bypass a server side firewall?

In this SQLi blog the author says that to bypass a firewall at the server side you should add this line to your /etc/hosts file: 54.165.170.2 www.example.com But doing so will only block my ...
1
vote
2answers
1k views

Can browser bypass hosts configuration file?

for example, assume I have edited the hosts file with the following line: 127.0.0.1 malicious-site.com if I happen to have installed a browser developed by people who owns this malicious website. ...
2
votes
1answer
292 views

.onion entries in hosts file

I opened my %WINDIR%\system32\drivers\etc\hosts file & I found the following entries there 0.0.0.0 gx7ekbenv2riucmf.onion 0.0.0.0 57g7spgrzlojinas.onion 0.0.0.0 Xxlvbrloxvriy2c5.onion 0.0.0.0 ...
4
votes
1answer
311 views

Proper method of block ads/tracking on VPN Server for Clients

I´m running a VPN service on Debian(for a few friends) as kind of like a self learning project to gather more experience running a secure and highly available service. At the moment OpenVPN pushes ...