Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Windows hosts file CANNOT block I.P. addresses. #24

Open
Lister0fSmeg opened this issue Oct 17, 2024 · 2 comments
Open

The Windows hosts file CANNOT block I.P. addresses. #24

Lister0fSmeg opened this issue Oct 17, 2024 · 2 comments

Comments

@Lister0fSmeg
Copy link

The Windows hosts file CANNOT block I.P. addresses. It only works for Domains. If you find the I.P. address of a website and then put that in the hosts files with either 127.0.0.1 or 0.0.0.0 you will still be able to access the website with your browser.

There is no point putting I.P. addresses in the windows hosts file because they will not work.

@polypores
Copy link
Contributor

Solution 1: Restart Windows or disable & reenable your network interface in Control Panel.
Solution 2. Clear Windows caches name resolution data:
ipconfig /flushdns

@valipod
Copy link

valipod commented Oct 18, 2024

No, this is not something that ListerOfSmeg needs help with, he signals that it is completely useless to add IP addresses to the hosts. It's basic understanding of DNS and what the hosts file does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants