Fedora: Difference between revisions
imported>Mutantmonkey No edit summary |
imported>Mutantmonkey Interwiki links |
||
| Line 9: | Line 9: | ||
==Edit Hosts file== | ==Edit Hosts file== | ||
A hosts file | A [[w:Hosts file|hosts file]] is an easy way to block a wide range of domains (ads, malware, etc). This works in Windows and Mac as well, but the file is in a different location. I found the [http://www.mvps.org/winhelp2002/hosts.htm MVPS hosts file] to be nice, but there are others available. You can also edit the file to add domains to block individually. | ||
In Fedora, the hosts file is located in '/etc/hosts'. To edit or replace the file, you must be logged in as root. SELinux will not allow you to do this, so once you've moved your new hosts file, you have to restore the default security context. | In Fedora, the hosts file is located in '/etc/hosts'. To edit or replace the file, you must be logged in as root. SELinux will not allow you to do this, so once you've moved your new hosts file, you have to restore the default security context. | ||