Extension:EmailAddressImage

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Email Address Image

Release status: stable

Implementation Tag
Description Generates an image of input text for obfuscating email addresses.
Author(s) Maarten van Dantzich (Thinklingtalk)
Last version 1.1 (2008-02-25)
MediaWiki 1.11+
Database changes no
License No license specified
Download
LOG
Tags
<email>
Hooks used
ParserAfterStrip
Check usage and version matrix

Contents

What can this extension do? [edit]

This extension turns text between <email> and </email> tags into an image of the text, so you can embed email addresses in your wiki without having them harvested by spammers. The address will not be clickable or copy/pastable; users will have to copy it by hand into a mail.

Usage [edit]

The email address must be specified in this tag format: <email>user@domain.com</email>. The code verifies that the text between the tags looks like an email address to prevent HTML/XSS injection.

Installation [edit]

Copy the files from SVN into $IP/extensions/EmailAddressImage/, then add the include to your LocalSettings.php.

Note that the code assumes you're placing the code files into $IP/extensions/EmailAddressImage/. If you place them elsewhere, you must modify the URL generated in the code to match.

Changes to LocalSettings.php [edit]

require_once("$IP/extensions/EmailAddressImage/EmailAddressImage.php");

See also [edit]