Projects >
Generally used to block unwanted connections.
Can be used to remove advertising.
When I locally-hosted a MediaWiki installation, setting this all to the computer’s network IP was important for various weird Apache rules to work without stupid errors. It also let me ban localhost and such to force me to use the complete URLs.
Linux ∞
(Linux)
-
It is
/etc/hosts
An example hosts file:
127.0.0.1 localhost 192.168.1.10 example.dyndns.org
Windows ∞
(Windows)
- In Windows XP, it is
C:\WINDOWS\system32\drivers\etc\hosts -
In Windows 10, it is
C:\Windows\System32\drivers\etc\hosts
An example hosts file:
localhost 192.168.1.10 127.0.0.1 192.168.1.10 example.dyndns.org 192.168.1.10

ported