Block ads without tools or add-ons

Protection against ads, banners, hijackers, etc.

There are a lot of ways to protect yourself from advertising and dubious websites. I myself use (Raspberry) Pi-Hole to protect me from advertising and tracking. With the Pi-Hole I protect all devices connected to the network.

If you do not want to spend money or install a tool (add-on), you can still deal with your local hosts (C: \ Windows \ System32 \ Drivers \ etc) file.

A well-equipped hosts file, like this, blocks 130.000 addresses. As a result, the hosts file is always the first to be evaluated for name resolution, before a DNS server is addressed on the Internet, the queries go nowhere and the advertisement is not displayed.

Without a custom hosts file, ads will appear:

With custom host file, the ad will not appear because the underlying address is no longer resolved:

Even entire websites can be blocked and system-wide.

"The whole is not science or a new invention." Sometimes the simple things are just forgotten. In addition, I am a friend of on-board resources!

After exchanging the hosts file, the DNS cache should be emptied. This is done in the CMD command ipconfig / flushdns executed.

MD5: B685FD9C45CE843A5811F33E4E975EED

Download the custom hosts file with 130.000 addresses:

hosts

Block Facebook only:

MD5: D72CAB9FF6201FB48EDEC41C657BBCCA

Block Facebook

Block only Youtube:

MD5: A3269E87E904AB57179E22E9C8E965B4

Block Youtube

Block Twitter only:

MD5: A4EDB193C8E5DD41675922F5ACA322AB

Block Twitter