djangosnippets.org: Latest snippets tagged with 'ban'https://djangosnippets.org/tags/ban/2008-04-26T21:15:29.685437-05:00User/IP Banning Middleware
2008-04-26T21:15:29.685437-05:00justquickhttps://djangosnippets.org/snippets/725/<p>Banning middleware with allow,deny functionality. Can select by User id/username and IP addresses. Returns a HttpResponseForbidden when banning requests. Banning by users is real nice because no matter which IP a pest comes from, they can never retrieve anything that they log into. Very handy for keeping out those unwanted …</p>
Freely redistributable