On Mon, Feb 1, 2010 at 2:54 PM, Dave Jeffery <djeff...@gmail.com> wrote: > I know this is a bad time to bring up feature requests but I would most > likely haveĀ forgottenĀ to bring it up at a later date. > Would a hide_email template tag be a good addition to the standard set of > template tags in django? There's a snippet[1] on django snippets which > serves as a good starting point. This seems like it could be a great > time-saver for those of us who want to beat the most common email address > harvesters.
The idea of an email obfuscation template doesn't really excite me that much. As a matter of personal preference: if your spam avoidance strategy is based on hiding your email address, you've already lost. Your email address *will* leak; email harvesters *will* adapt to any new techniques seen with any frequency in the wild. You can either start trying to win an arms race with people that have already demonstrated that they have no conscience, or accept you're going to get spam and filter email on receipt. Aside from any personal preference, there are also technical issues - for example, the scheme you propose would break for any user with Javascript disabled. This may not be an issue sites you have worked on, but it would be for many, including anything being built with a US Government Section 508 accessibility requirement. In short, I don't believe that there is any email obfuscation strategy that you can propose that is a philosophically and technically universally accepted best practice. In fact, such a scheme cannot, by definition, exist, because if it did, email harvesters would very quickly adapt to interpret that best practice scheme. If you like snippet 1349, and you don't have any of the philosophical or technical objections, then go ahead and use it in your code. I'm just not convinced it's a good match for Django core. Obfuscation strategy is something that needs to be determined on a per-site basis, and Django isn't in a position to suggest or enforce best practice. Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.