Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Adblock based application

Project Description


This application helps you to get rid of the ads, so that the system redirects the field of ads for localhost.


1. <div style="color:red">
You should be very careful when using this tool, since attackers can use this same mechanism to fake pages.
1. <div style="color:red">
Make sure that files are protected hosts.
1. <div style="color:red">
Always protect /etc/hosts.base with root permissions.

How install

<pre><code>$ pip install adbblockd</code></pre>


<pre><code>$ easy_install adbblockd</code></pre>


1. Rename you /etc/hosts for /etc/hosts.base
1. Create in you home .adblockd directory
1. In this directory create config.json
1. Create hosts file in .adbclockd directory
1. Create symbolic link from hosts to /etc/hosts

Now you can configure config.json with content:

<pre><code class="json">{
"hosts": {
"import_files": [
"dest": "hosts"
"base": [

Running this

<pre><code>$ adblockd -c ~/.adblockd/config.json -u</code></pre>

This command will update hosts base and download all files specified in section base in config.json.


You can create config-noblock.json with base section empty for you can activate ads.

You can create others bases if you is developer and need vhost for you applications.

Future Projects

1. Create mechanism for protect hosts files
1. Create webservice for register new entries
1. Create create pluggin for Google Chrome and Mozilla Firefox for add ads.

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.2 kB) Copy SHA256 Hash SHA256
Source None Feb 8, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers