django-iprestrict Django app + middleware to restrict access to all or sections of a Django project by client IP ranges. Documentation (including installation and configuration) is available on Read the Docs.