Skip to content

logarytm/adaway.py

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

AdAway for Desktop

Maintenance

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.

Usage

(Download the script first).

Windows

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

Linux

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

Credits

  • AdAway (the original Android app)

About

block ads with hosts file on Windows and Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages