Skip to main content

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.

Project details

Download files

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

Source Distribution

adblockd-0.0.4.tar.gz (3.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page