A Django middleware and URL helper functions to restrict access to specific URLs to only allow RFC1918 private IP addresses (intranet IPs).
This package provides:
- A middleware that checks if requests come from RFC1918 private IP ranges
- Helper functions to use in
urls.py
to easily protect specific URLs or URL patterns