DjangoBB

Django based forum engine

  • You are not logged in.

#1 July 31, 2012 18:13:18

jedie
From: germany
Registered: 2012-07-12
Posts: 160
Reputation: +  1  -
Profile   Send e-mail  

registration from bots...

In my PyLucid glue Plugin i have add a simple mechanism against script kiddies.

I display the html form and parts of it only if JavaScript is enabled. e.g.:

            <script type="text/javascript">
document.write('<fo'+'rm act'+'ion="." met'+'hod="po'+'st">');
</script>

full html here:
https://github.com/jedie/PyLucid-djangobb-plugin/blob/master/djangobb_plugin/templates/registration/registration_form.html




Some of my Projects:
* Migrate phpBB to DjangoBB with django-phpBB3
* DjangoBB github repro and information about my changes
* PyLucid CMS written in Django: http://www.pylucid.org/

Offline

#2 Aug. 1, 2012 09:37:36

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

registration from bots...

i used recaptcha + checking email and don't send emails to some free one time hostings like mailinator.com (locked in exim4 server)

#forms.py
from registration.forms import RegistrationFormUniqueEmail
from captcha.fields import ReCaptchaField
class RegistrationFormCaptcha(RegistrationFormUniqueEmail):
    captcha = ReCaptchaField()
#urls.py
urlpatterns = patterns('',
    # Apps
    url(r'^registration/register/$', 'registration.views.register', 
        {'form_class': RegistrationFormCaptcha, 
         'backend': 'registration.backends.default.DefaultBackend'}, 
        name='registration_register'),

Offline

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version