Polymorph: Zak Greant's Blog

HTTPS-Everywhere Rule for Mediawiki.org

The Electronic Frontier Foundation‘s HTTPS-Everywhere is a Firefox plugin designed to help make your web surfing experience more secure by routing you to the HTTPS connections that are available for some popular websites (like Twitter and Wikipedia).  The plugin also allows you to add custom rules. Here’s a rule to automatically route Wikipedia.org links opened in Firefox over to the encrypted connection available at https://secure.wikimedia.org.

<ruleset name="MediaWiki">
    <target host="mediawiki.org" />
    <target host="*.mediawiki.org" />
    <rule from="^http://(www\.)?mediawiki\.org/(.+)"
          to="https://secure.wikimedia.org/wikipedia/mediawiki/$2" />

    <rule from="^http://(www\.)?mediawiki\.org"
          to="https://secure.wikimedia.org/wikipedia/mediawiki/wiki" />
</ruleset>

The plugin is particularly useful in that it intercepts URLs opened by third party apps and converts them over to their secure equivalents (so long as the relevant rules have been written correctly.)

To install the script, save it as Mediawiki.xml in the HTTPSEverywhereUserRules directory of your Firefox user profile. See more detailed instructions at https://www.eff.org/https-everywhere/rulesets.

Share
Creative Commons License
The HTTPS-Everywhere Rule for Mediawiki.org by Zak Greant, unless otherwise expressly stated, is licensed under a Creative Commons Attribution 3.0 Unported License.

Posted on Saturday, January 1st, 2011 at 21:19

You can follow any responses to this entry through the RSS 2.0 feed.

You can leave a response, or trackback from your own site.

Leave a Reply

Comments are moderated. I delete obvious SEO attempts and other content-free comments.

Polymorph is powered by Wordpress running on Apache, Ubuntu Linux, MySQL and PHP.

The marvelous illustration of the Mad Hatter is by the late, great John Tenniel.
Like many great parts of our culture, it is in the public domain.

Contact: zak@greant.com

Entries (RSS) and Comments (RSS)