Skip to main content

A simple KSS component for hiding email addreses from spammers.

Project description

Zest emailhider

This document describes the zest.emailhider package.

Dependencies

This package depends on kss.plugin.cacheability to use GET requests instead of POST. Don’t forget to add kss.plugin.cacheability to the zcml directive of your instance.

Overview

This package provides a mechanism to hide email addresses with KSS. Objects display a placeholder link with a ‘hidden-email’ class and a ‘uid’ kss attribute set to the UID of a user; a KSS click action is bound to the link which replaces it with a ‘mailto’ link directed at the email address of the user. Using this mechanism the email address isn’t visible in the initial page load, and it requires JavaScript to be seen - so it’s much harder for spammers to harvest.

Object are marked with the IMailable interface - this states that they can provide uid and email attributes. The ‘emailhider’ view is provided to generate the placeholder link.

Note: For publicly viewable email address, KSS must be made publicly accessible.

History of zest.emailhider package

1.2 (2008-11-19)

  • Using kss.plugin.cacheability and added it as a dependency. [jladage]

  • Allow to set the uid to email_from_address. [jladage]

  • Changed the KSS to use the load event instead of the click event - it now either works transparently, or asks the user to activate JS. [simon]

1.1 (2008-10-24)

  • Added translations and modified template to use them. [simon]

  • Initial creation of project. [simon]

1.0 (2008-10-20)

  • Initial creation of project. [simon]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zest.emailhider-1.2.tar.gz (10.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page