diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2014-10-19 12:06:34 +0200 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2014-10-19 12:06:34 +0200 |
| commit | 20400c40c34b6122621476c46460c5a3a8624c89 (patch) | |
| tree | aa598d3d8b09f489b8d96a1821e7a560b8019672 /searx/https_rules/Deviantart.xml | |
| parent | 840945f498cd07d38cb198cc0735b6445f44802c (diff) | |
| parent | 1e3e6465845236b027ce8df9ab5fcc78ffe3f1d1 (diff) | |
Merge pull request #97 from pointhi/https
Implementing https rewrite support
Diffstat (limited to 'searx/https_rules/Deviantart.xml')
| -rw-r--r-- | searx/https_rules/Deviantart.xml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/searx/https_rules/Deviantart.xml b/searx/https_rules/Deviantart.xml new file mode 100644 index 000000000..7830fc20f --- /dev/null +++ b/searx/https_rules/Deviantart.xml @@ -0,0 +1,53 @@ +<!-- + For problematic rules, see Deviantart-mismatches.xml. + + + Other deviantArt rulesets: + + - Sta.sh.xml + + + ToDo: Find edgecast URL for /(fc|th)\d+. + + + Mixed content: + + - Images on *.....com from e.deviantart.net * + + * Secured by us + +--> +<ruleset name="DeviantArt (pending)" default_off="site operator says not ready yet"> + + <target host="deviantart.com" /> + <target host="*.deviantart.com" /> + <target host="deviantart.net" /> + <target host="*.deviantart.net" /> + + + <!-- Not secured by server: + --> + <!--securecookie host="^\.deviantart\.com$" name="^userinfo$" /--> + + <securecookie host="^\.deviantart\.com$" name=".*" /> + + + <!-- Redirects from com to net, but does so successfully by itself. + --> + <rule from="^http://([aei]|fc\d\d|s[ht]|th\d\d)\.deviantart\.(com|net)/" + to="https://$1.deviantart.$2/" /> + + <!-- This handles everything that isn't in the first rule. + Namely, usernames, backend, fc, th, and (www.). + These domains present a cert that is only + valid for .com. + Note that .net isn't used on DA, but.net does + redirect to .com, and we shouldn't break what would + otherwise work. + Mustn't rewrite from https here, as doing so + would conflict with the first rule. + --> + <rule from="^http://([^/:@\.]+\.)?deviantart\.(?:com|net)/" + to="https://$1deviantart.com/" /> + +</ruleset> |