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

Add A Comment »

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)