How to Block Ads : Tutorial
How to avoid them?
Well there are many browser etensions and plug-ins that help you do that.
But to get it better here is a way to block ads long before they reach your browser, you just need to set up an IP-blocking list (the same technology your browser-based blocker is using) either on your PC or through your router.
On PC
You do the blocking at the OS level. This means altering a file known as the hosts file.
A hosts file contains mappings of IP addresses to host names. When your computer starts up it loads the hosts file into memory and checks with this file before sending requests on to a web server.
To create an ad blocker, you simply need to add some rules to your hosts file. (Doing this may disable some other functions of web pages, such as certain embedded videos that normally begin with an ad, etc.)
On Windows the host file lives here:
C:\WINDOWS\SYSTEM32\DRIVERS\ETC
Of course, figuring out where ads are served from is a cumbersome task, Fear not, others have already done the hard work for you. One of this is the MVPs.org hosts file, just copy the contents into your hosts file, save and enjoy your new ad-free web.
#-Link-Snipped-#
Using a router
An even more efficient way to block ads is at the router level. Install an ad-block script on your router, and any computer connected to your home network won't be served ads.
Understandably, most routers don't contain tools to block any sort of content (even ads) out of the box. However, open firmware tools, like DD-WRT or Tomato, make it simple to set up a network-wide ad blocking system.
Learn how to install these by related forums where users have already contributed their own scripts along with instructions on how to install them. Just download the scripts, copy them to your router and you're done.
For DD-WRT, check out this link which contains several scripts and links you can use with your DD-WRT firmware.
#-Link-Snipped-#