I'm migrating from a custom web site to MediaWiki a collection of pages which contain information for various games, including player lists with contact information (mostly email addresses). The old site only shows the email addresses (as mailto links) when a user is loged in; if you browse to one of these pages without being logged in, you see names only, without the mailto links. The purpose of this is to hinder address harvesters, the assumption being that they won't bother to get an account on our site.
Is there a way to do this with MediaWiki?
Surely there are many different ways to do this but the most straightforward way would be to place all the email addresses in a page only viewable by logged-in users. Search mediawiki.org for user rights management.
On 1/28/09, Joel Uckelman uckelman@nomic.net wrote:
I'm migrating from a custom web site to MediaWiki a collection of pages which contain information for various games, including player lists with contact information (mostly email addresses). The old site only shows the email addresses (as mailto links) when a user is loged in; if you browse to one of these pages without being logged in, you see names only, without the mailto links. The purpose of this is to hinder address harvesters, the assumption being that they won't bother to get an account on our site.
Is there a way to do this with MediaWiki?
-- J.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Thus spake Philip Beach:
Surely there are many different ways to do this but the most straightforward way would be to place all the email addresses in a page only viewable by logged-in users. Search mediawiki.org for user rights management.
Sorry, but neither setting the whole page to be viewable only by logged-in users, nor splitting the page into two are an acceptible solutions. One of our goals in switching is to put everyting on one page (it's on four pages now).
Would you be comfortable writing an extension to MediaWiki? I believe you could put the addresses in a custom tag that checked the user's rights before displaying the link. If anonymous users were able to view wiki-text they could still see the email addresses, but I think you can turn that off and it's another non-standard step to keep them away.
-Courtney
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Joel Uckelman Sent: Wednesday, January 28, 2009 7:08 AM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] hiding mailto links from users who are not logged in
I'm migrating from a custom web site to MediaWiki a collection of pages which contain information for various games, including player lists with contact information (mostly email addresses). The old site only shows the email addresses (as mailto links) when a user is loged in; if you browse to one of these pages without being logged in, you see names only, without the mailto links. The purpose of this is to hinder address harvesters, the assumption being that they won't bother to get an account on our site.
Is there a way to do this with MediaWiki?
Thus spake "Christensen, Courtney":
Would you be comfortable writing an extension to MediaWiki? I believe you co uld put the addresses in a custom tag that checked the user's rights before d isplaying the link. If anonymous users were able to view wiki-text they coul d still see the email addresses, but I think you can turn that off and it's a nother non-standard step to keep them away.
-Courtney
I'm willing to write an extension to do this if there isn't already a way.
Thus spake "Christensen, Courtney":
Would http://www.mediawiki.org/wiki/Extension:EmailObfuscator help?
Yes, that probably would be sufficient. Thanks!
mediawiki-l@lists.wikimedia.org