djangosnippets.org: Latest snippets tagged with 'antispam'https://djangosnippets.org/tags/antispam/2010-02-14T11:47:39-06:00AntiSpamForm2010-02-14T11:47:39-06:00zenxhttps://djangosnippets.org/snippets/1925/<p>A general AntiSpamForm using some tricks to prevent spam based on current <a href="http://code.djangoproject.com/browser/django/trunk/django/contrib/comments/forms.py">django.contrib.comments.forms</a>. It uses a timestamp, a security hash and a honeypot field. See <a href="http://www.djangosnippets.org/snippets/1856/">AntiSpamModelForm</a> too.</p>
Freely redistributableAntiSpamModelForm2010-01-07T19:31:40-06:00zenxhttps://djangosnippets.org/snippets/1856/<p>A general AntiSpamModelForm using some tricks to prevent spam based on current <a href="http://code.djangoproject.com/browser/django/trunk/django/contrib/comments/forms.py">django.contrib.comments.forms</a>. It uses a timestamp, a security hash and a honeypot field. See <a href="http://www.djangosnippets.org/snippets/1925/">AntiSpamForm</a> too.
</p>
Freely redistributablePrevent Django newcomments spam with Akismet (reloaded)2009-07-17T02:20:04-05:00sciyoshihttps://djangosnippets.org/snippets/1638/<p>This is a rewrite of <a href="http://www.djangosnippets.org/snippets/1006/">snippet #1006</a> to use the moderation features available in Django's comments framework. This is more customizable than the signals approach and works well if other moderation features are being used. If you want to make comments that are flagged as spam become hidden instead ...</p>
Freely redistributableAlternative to Captchas (Without Human Interaction)2008-09-28T15:08:46-05:00Archatashttps://djangosnippets.org/snippets/1092/<p>This security field is based on the perception that spambots post data to forms in very short or very long regular intervals of time, where it takes reasonable time to fill in a form and to submit it for human beings.</p>
<p>Instead of captcha images or Ajax-based security interaction, the ...</p>
Freely redistributablehide_email2008-05-06T00:19:13-05:00rukebahttps://djangosnippets.org/snippets/740/<p>This templatetag obsfucate mailto link and hide it while not happen onmouseover event.</p>
<p>Usage:</p>
<pre><code>{% hide_email object.author object.author.email %}
</code></pre>
<p>Output:</p>
<pre><code>&lt;a href="mailto:noreply@spammer.net"
onmouseover="var a=String.fromCharCode(79+35,14+103,66+41,30+71,49+49,16+81);
var b=String.fromCharCode(14+50 ...</code></pre>
Freely redistributable