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.
Download the custom hosts file with 130.000 addresses:
Block Facebook only:
Block only Youtube:
Block Twitter only: