block ads with hosts file on Windows and Linux
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

AdAway for Desktop


This program blocks ad servers globally by blacklisting them in /etc/hosts.

Beware that if you have a HTTP server running on ports 80 or 443 (if you don't know what a HTTP server is, you probably don't) then you may get additional log entries related to apps or websites trying to display ads. If so, the possible solutions are to change the listening port of the web server or provide the -t option to redirect them to another server.


(Download the script first).


  1. Download and install Python 2.7.
  2. Open a Command Prompt with administrator privileges and run C:\path\to\python


  1. Run python (python must be in version 2.x, if it isn't, try python2.7 or python2).


  • AdAway (the original Android app)