Skip to content

Spam protection tools for django applications.

License

Notifications You must be signed in to change notification settings

mixkorshun/django-antispam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-antispam

build status codecov pypi pep8 MIT

Various anti-spam protection tools for django applications.

See the documentation for more details.

Installation

The package can be installed using:

pip install django-antispam

Add the following settings:

INSTALLED_APPS += (
    'antispam',

  # 'antispam.akismet',
  # 'antispam.honeypot',
  # 'antispam.captcha',
)

# Akismet protection configuration (optional)

AKISMET_API_KEY = '<akismet api-key>'

AKISMET_SITE_URL = '<base site url>'

AKISMET_TEST_MODE = False

# reCAPTCHA default configuration (optional)

RECAPTCHA_SITEKEY = 'sitekey'

RECAPTCHA_SECRETKEY = 'secretkey'

RECAPTCHA_WIDGET = 'antispam.captcha.widgets.ReCAPTCHA'

RECAPTCHA_TIMEOUT = 5

RECAPTCHA_PASS_ON_ERROR = False

Contributing

If you have any valuable contribution, suggestion or idea, please let us know as well because we will look into it.

Pull requests are welcome too.