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!

Banned IP processing for .htaccess locations like Wordpress.

Project Description

This is a project that gathers together all IPs that are being reported as banned by the Wordpress plugins

  • Better WP Security (now iThemes Security and not working any more)
  • Login Security Solution

The IPs are taken from a mailbox where the plugins send their mails to. The mails are parsed, the IP(s) extracted and added to the database.

Necessary settings are:


There is a “unification” of the IPs, that means the following IPs


will be merged to the “IP” 10.10.10.*. So instead of the 5 single IPs there will be only a single wildcard IP. This will work for at least 3 IPs being in a group.

You can specify the paths to Wordpress .htaccess files on the host the ip_assembler is running. This will result in adjusting all these .htaccess files if there are new IPs added and the number of new IPs is greater than 10 (default) or settings.IP_ASSEMBLER_IP_CHANGED_THRESHOLD.

The number of IPs of the last update of .htaccess files is saved in settings.IP_ASSEMBLER_IP_CHANGED_FILE (default: /tmp/ipa-last).

For each IP, the following will be added

The place where this will be put is determined by checking if SetEnvIF REMOTE_ADDR ... already is there. If so, this is the start position. The last SetEnvIF X-CLUSTER-CLIENT-IP is the end position. Everything in between will be updated with the IPs from the database. If the .htaccess does not contain these entries, than the content will be written to the beginning of the file.

There is an additional view in the admin site of the IP model with which you can batch add IPs. It’s linked near the “Add IP” button.

Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ip_assembler-0.0.1-py2.py3-none-any.whl (12.5 kB) Copy SHA256 Checksum SHA256 3.4 Wheel Nov 7, 2015

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting