[HTTPS-E Rulesets] Improved XKCD rule

Finn thefinn93 at gmail.com
Mon Mar 12 13:10:44 PDT 2012


The current rule for the webcomic XKCD (xkcd.com) does secure images, which
are hosted on img.xkcd.com, a subdomain which does not support https.
However, sslimgs.xkcd.com appears to host the same content and support
https. Hence, my first rule. I've tried it and it works in Firefox, but i
can't get it to work in Chrome, I'm not sure why. Im not sure if I should
attach it or put the xml in the body of the message, so I'll do both:

<ruleset name="xkcd (with images)">
<target host="xkcd.com" />
<target host="xkcd.org" />
<target host="*.xkcd.com" />
<target host="*.xkcd.org" />
<target host="www.store.xkcd.com" />

<rule from="^http://(www\.|m\.)?xkcd\.(?:com|org)/"
to="https://$1xkcd.com/" />
<rule from="^http://(?:www\.)?store\.xkcd\.com/"
to="https://store.xkcd.com/" />
<rule from="^http://imgs\.xkcd\.com/"
to="https://sslimgs.xkcd.com/" />
</ruleset>


Finn Herzfeld
 (503) 662-2288
 1DC24A7C<http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x75B041BF1DC24A7C>
<https://twitter.com/thefinn93>
<http://www.thefinn93.com/+><https://www.facebook.com/finniswatchingyou>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.eff.org/pipermail/https-everywhere-rules/attachments/20120312/24b20938/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xkcd.xml
Type: text/xml
Size: 470 bytes
Desc: not available
URL: <http://lists.eff.org/pipermail/https-everywhere-rules/attachments/20120312/24b20938/attachment.xml>


More information about the HTTPS-Everywhere-Rules mailing list