## Saturday, January 26, 2013

### HTTPS Everywhere ruleset for topcoder (Updated)

At this moment topcoder is my only source of revenue. Things like how, even if you manually use https, it tends to redirect you to a version with no https in some links, really bother and worry me.

Today I thought of Firefox's HTTPS Everywhere plugin (Also for Chrome). And tried to look how to make it do its magic on TopCoder.com and its subdomains. Surprise! it works:

<ruleset name="TopCoder">  <target host="topcoder.com" />  <target host="*.topcoder.com" />  <!-- https://forums.topcoder.com does not exist, they should remove that link...-->  <rule from="^https?://forums\.topcoder\.com/" to="https://apps.topcoder.com/forums/"/>  <!-- Will the earth still spin if there were no regular expressions? -->  <rule from="^http://([^.]+\.)?topcoder\.com/" to="https://\$1topcoder.com/"/></ruleset>

For info about how to install it, take a look at this guide: https://www.eff.org/https-everywhere/rulesets.

Update I knew it was way too easy, there were bugs with the forums. subdomain. This new version should fix it.