No Youtube ads

Boring Video ADS on Youtube seem to download content from the domain, precisely from the url .

A very simple procedure to avoid Video Ads is to modify the (famous) HOSTS file letting your operating system to resolve the domain with ip (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

    (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.