PyLucid CMS Logo

How IP ban works (new in PyLucid v0.9)

Note: The IP ban function is new in PyLucid v0.9

The componentes:

settings:

Dbpreferences / pylucid / SystemPreferencesForm:

The BanEntry model is a simple list of banned IP addresses with a create datetime.
The IPBanMiddleware check on every request, if the current client IP address (from: request.META["REMOTE_ADDR"]) is in the BanEntry list. If the IP is banned, the middleware sends back a HttpResponseForbidden.
The middleware also called the BanEntry.objects.cleanup() method sometimes, to remove old entries from the list.

Some plugins automatically adds clients to the ban list. e.g.: The search plugin ban a user if he starts too many searches. You can setup the limit values in the plugin preferences.

0 comments for 'IP ban':
    there exist no comment for 'IP ban'
Leave a comment
tag navi documentation | help

django-processinfo: 5.1 ms of 235.7 ms (2.2%)