summaryrefslogtreecommitdiff
path: root/searx/plugins/https_rules/DuckDuckGo.xml
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-04-13 00:30:12 +0200
committerAdam Tauber <asciimoo@gmail.com>2015-04-13 00:30:12 +0200
commitd2a636f75d24953f5094ea97ab54a8a4353a65ff (patch)
tree22da091679dd5b9460391a50810b96b80020e15f /searx/plugins/https_rules/DuckDuckGo.xml
parent146928a74980b90de614b71512334ac0a6373048 (diff)
[mod] https rewrite pluginification
Diffstat (limited to 'searx/plugins/https_rules/DuckDuckGo.xml')
-rw-r--r--searx/plugins/https_rules/DuckDuckGo.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/searx/plugins/https_rules/DuckDuckGo.xml b/searx/plugins/https_rules/DuckDuckGo.xml
new file mode 100644
index 000000000..173a9ad9f
--- /dev/null
+++ b/searx/plugins/https_rules/DuckDuckGo.xml
@@ -0,0 +1,38 @@
+<!--
+ Problematic domains:
+
+ - www.dukgo.com (mismatched, CN: dukgo.com)
+
+
+ Fully covered domains:
+
+ - (www.)dukgo.com (www → ^)
+
+-->
+<ruleset name="DuckDuckGo">
+ <target host="duckduckgo.com" />
+ <target host="*.duckduckgo.com" />
+ <target host="ddg.gg" />
+ <target host="duck.co" />
+ <target host="i.duck.co" />
+ <target host="dukgo.com" />
+ <target host="www.dukgo.com" />
+
+ <exclusion pattern="^http://(help|meme)\.duckduckgo\.com/" />
+
+ <securecookie host="^duck\.co$" name=".*"/>
+
+ <rule from="^http://duckduckgo\.com/" to="https://duckduckgo.com/"/>
+ <rule from="^http://([^/:@\.]+)\.duckduckgo\.com/" to="https://$1.duckduckgo.com/"/>
+ <!-- TODO: What does ddg.gg/foo do? Runs query foo, redirects to homepage, or error? -->
+ <rule from="^http://ddg\.gg/$" to="https://duckduckgo.com/" />
+
+ <rule from="^http://duck\.co/" to="https://duck.co/" />
+
+ <rule from="^http://i\.duck\.co/"
+ to="https://duckduckgo.com/"/>
+
+ <rule from="^http://(?:www\.)?dukgo\.com/"
+ to="https://dukgo.com/" />
+
+</ruleset>