Firewall

Models

class firewall.models.Firewall(*args, **kwargs)

SQL table fields for the firewall.

class firewall.models.Log(*args, **kwargs)

SQL Log table.

Views

firewall.views.alter_site(request, *args, **kwargs)

Modify an existent keyword.

firewall.views.block_sites(request, *args, **kwargs)

Block a url with a given keyword.

firewall.views.log(request, *args, **kwargs)

Reads the log with only attempts denied by Squid.

firewall.views.remove_site(request, *args, **kwargs)

Remove a keyword from the denied list of Squid.

firewall.views.update_context()

Update the context dictonary with commom informations to be rendered in the HTML template

Forms

class firewall.forms.FormFirewall(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False, instance=None)

Creates a form for a firewall model.

class firewall.forms.FormLog(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=':', empty_permitted=False, instance=None)

Creates a form for a Log model.

Table Of Contents

Previous topic

Backup

Next topic

Home

This Page