When you want to connect a website, your computer requests IP adress from your DNS server. But if your computer has that IP adress in it's hosts file, then it tries to connect that IP adress.
What we are doing is adding a blacklist to our hosts file that makes whenever computer tries to connect an ad provider site, it's tries to connect local host instead of going to DNS server. Than of course there is no response.
You need to install this hosts file and unzip to the same directory with main.py
.
Python version 3 required.
This is a beta version. I am not responsible for any issues on your computer. Using this code is all your own risk.
Visit winhelp2002.mvps.org for original idea.