R
R
Roman2017-08-28 09:54:35
Windows
Roman, 2017-08-28 09:54:35

How to block all subdomains in hosts?

Good afternoon!
How to block all subdomains in the hosts file?
It is clear with the site:
127.0.0.1 site.ru
If this is the case, then
127.0.0.1 *.site.ru does not work.
Is it possible to block it somehow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2017-08-28
@PavelMonro

hosts does not support this, each subdomain is only separate, or use a firewall

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question