Skip to content

A small middleware application that provides the staff with a banning feature.

Notifications You must be signed in to change notification settings

Derecho/django-ipban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

django-ipban is a simple middleware application that enables staff users to ban visitors by their IP addresses. Based upon the code of Björn Kempén on his blog, I made an app out of it that anyone could easily add to their websites.

Installation:

  • Add ipban to your INSTALLED_APPS
  • Add ipban.middleware.IPBanMiddleware to your MIDDLEWARE_CLASSES
  • Optional: Place your own template in TEMPLATE_DIR/ban/banned.html
  • Done!

Usage:

In your admin panel, you now see a ban page. Here you can add any bans you may like. A ban consists of an IP Address, a reason and an optional duration.

Todo:

  • Make some more translations (any help kindly accepted!)

Contact:

You can contact me on krisje8@gmail.com , or by visiting my website (krisje8.com) and leaving a comment.

About

A small middleware application that provides the staff with a banning feature.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages