djangosnippets.org: Latest snippets tagged with 'protect'https://djangosnippets.org/tags/protect/2009-03-02T14:38:23.732252-06:00Hide Emails
2009-03-02T14:38:23.732252-06:00epicservehttps://djangosnippets.org/snippets/1349/<p>Example Usage in the template:</p>
<pre><code><p>{{ email|hide_email }}<br />
{{ email|hide_email:"Contact Me" }}<br />
{% hide_email "name@example.com" %}<br />
{% hide_email "name@example.com" "John Smith" %}</p>
{{ text_block|hide_all_emails|safe }}
</code></pre>
<p>All hidden emails are rendered as a hyperlink that is protected by
javascript and an email and name that are encoded randomly …</p>
Freely redistributableProtect anti robots template tag
2008-05-06T12:26:33.365288-05:00marinhohttps://djangosnippets.org/snippets/742/<p>This code works like that in the Google Groups you see and when try to see an e-mail and it is like this "mari..@gmail.com" with a link to write a captcha code and see the true value.</p>
<p>You can use it for anything you want: links, blocks of texts, block …</p>
Freely redistributable