No Youtube ads

Boring Video ADS on Youtube seem to download content from the domain 2mdn.net, precisely from the url http://s0.2mdn.net/instream/flash/v3/adsapi_3.swf .

A very simple procedure to avoid Video Ads is to modify the (famous) HOSTS file letting your operating system to resolve the domain 2mdn.net with ip 127.0.0.1 (your own system) actually blocking downloads of pages, code and videos from the ads system. I prefer this procedure than many others you can find on internet because it’s not necessary to install anything on you computer. 

How to do it (I assume you have a Windows machine, if not, find the HOSTS file on your system):

  1. Start Menu -> Accessories -> right click on “Command prompt” -> click on “Run as administrator“. A black window will open. If you have a Windows XP pc, simply open a commad prompt window;
  2. cut and paste in the command window this string “notepad c:\Windows\System32\drivers\etc\hosts” (then press “enter” key);
  3. notepad will open, then put those lines at the end of file

    127.0.0.1 s0.2mdn.net
    127.0.0.1 s1.2mdn.net
    127.0.0.1 googleads.g.doubleclick.net
    127.0.0.1 ad.doubleclick.net

    (without quotes) You should see something like the picture;
    [Update Feb 6th, 2014: last line has been added to try and solve what seems to be an architectural change of Youtube. You'll probably see somewhere in some pages an iframe with a "Connection problem" note, don't mind about it]

  4. close notepad saving the file;
  5. in the command window run this command ipconfig /flushdns (“enter“!) to flush DNS cache of your PC;
  6. close the command window.

Try to navigate Youtube, now you shouldn’t see any Video ADS before your preferred videos.

 

NOTE: Thank you to Lorenz for troubleshooting and comments.