Hey guys!
So today, I was watching a video and these pop-up ads would not stop firing! I mean seriously, this is ridiculous! I was clicking on 'X' buttons for like 2 solid minutes. Note: I am already using an ad-blocker in my browser!
When the content of a webpage is loading (along with the ads), the ad-blockers are using smart algorithms to prevent ads from loading (html,js,css,etc). However, advertisers are getting smart too and they actually manage to fool some ad-blockers.
The happy scenario is that you accidentally click on an advert, visit their website, close the window and then continue with your day. However, that's not the case! Most viruses, trojans & adware/spyware programs derive from those websites that you accidentally click.
What if someone could block the network call to external websites that are known to be advertisers ? If the IP of the advertiser gets blocked by the client (ie. your web browser) then the content won't be even loaded. Is there any way to do that ? Yes there is! The only way to do that is through your HOSTS file inside your Operating System.
When you are trying to visit a website, your computer is firstly scanning your HOSTS file. This file contains a map of IPs and url addresses. For example, 127.0.0.1 maps to localhost. So, when you type localhost into your browser it gets mapped to 127.0.0.1. If you add an entry in your HOSTS file that maps www.google.com to 1.2.3.4, this means that when you try to type www.google.com in your browser, it will try to make a call to the IP 1.2.3.4 instead of the Google's one (that gets mapped from the DNS in the internet). This is the easiest way to control the traffic of your computer. My school tried to do that, but I found my way around it :D
If we had all the IP addresses of the most known advertisers and map them to our local IP (127.0.0.1 or 0.0.0.0) then their ads would never be loaded, because the calls to their websites would be re-routed into our computer, without traveling the web, without asking for their real IP! Ok, that's cool, but is it a realistic scenario ? How can you even collect all the IPs of the most known advertisers ? There are so many that someone must dedicate lots of time and effort to track them ! Is there anyone who did that ?
Well guess what! There are some people that are tracking advertisers. It's an on-going process, where people collect unwanted IPs. They created a HOSTS file (Note: they try to keep it up to date) that maps the unwanted IPs to your computer (127.0.0.1 or 0.0.0.0).
Their website is https://winhelp2002.mvps.org/hosts.htm! There you can find more information on how to import the HOSTS file into your operating system and get a full explanation of what they are doing and what you can achieve by using it. Cheers to these guys!
So today, I was watching a video and these pop-up ads would not stop firing! I mean seriously, this is ridiculous! I was clicking on 'X' buttons for like 2 solid minutes. Note: I am already using an ad-blocker in my browser!
When the content of a webpage is loading (along with the ads), the ad-blockers are using smart algorithms to prevent ads from loading (html,js,css,etc). However, advertisers are getting smart too and they actually manage to fool some ad-blockers.
The happy scenario is that you accidentally click on an advert, visit their website, close the window and then continue with your day. However, that's not the case! Most viruses, trojans & adware/spyware programs derive from those websites that you accidentally click.
What if someone could block the network call to external websites that are known to be advertisers ? If the IP of the advertiser gets blocked by the client (ie. your web browser) then the content won't be even loaded. Is there any way to do that ? Yes there is! The only way to do that is through your HOSTS file inside your Operating System.
When you are trying to visit a website, your computer is firstly scanning your HOSTS file. This file contains a map of IPs and url addresses. For example, 127.0.0.1 maps to localhost. So, when you type localhost into your browser it gets mapped to 127.0.0.1. If you add an entry in your HOSTS file that maps www.google.com to 1.2.3.4, this means that when you try to type www.google.com in your browser, it will try to make a call to the IP 1.2.3.4 instead of the Google's one (that gets mapped from the DNS in the internet). This is the easiest way to control the traffic of your computer. My school tried to do that, but I found my way around it :D
If we had all the IP addresses of the most known advertisers and map them to our local IP (127.0.0.1 or 0.0.0.0) then their ads would never be loaded, because the calls to their websites would be re-routed into our computer, without traveling the web, without asking for their real IP! Ok, that's cool, but is it a realistic scenario ? How can you even collect all the IPs of the most known advertisers ? There are so many that someone must dedicate lots of time and effort to track them ! Is there anyone who did that ?
Well guess what! There are some people that are tracking advertisers. It's an on-going process, where people collect unwanted IPs. They created a HOSTS file (Note: they try to keep it up to date) that maps the unwanted IPs to your computer (127.0.0.1 or 0.0.0.0).
Their website is https://winhelp2002.mvps.org/hosts.htm! There you can find more information on how to import the HOSTS file into your operating system and get a full explanation of what they are doing and what you can achieve by using it. Cheers to these guys!
No comments:
Post a Comment