summaryrefslogtreecommitdiff
path: root/searx/plugins/https_rules/GoogleImages.xml
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-04-21 15:23:32 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-04-22 11:47:16 +0200
commit247c46c6b0c6e7f4fbbc4642bf288c51dcf20a33 (patch)
tree552e8210ba47a3559e23946eeb2716a36bed0346 /searx/plugins/https_rules/GoogleImages.xml
parentc6d5605d272c963b075bf17eba7407d0a700cd2a (diff)
[drop] plugin HTTPS rewrite - rule base is to old (update is to big)
The usefulness of the _HTTPS rewrite_ plugin is questionable: - the 36 rule files have not been updated since 2015 [1] - actual there are 23760 rule files in the https-everywhere repo [2] For the first, we can remove this plugin. For a complete new implementation, it might be good to know that there is a project "https-everywhere : Privacy for Pythons" [3] related: https://github.com/return42/searx-next/issues/8 [1] https://github.com/return42/searx-next/tree/d187a1d/searx/plugins/https_rules [2] https://github.com/EFForg/https-everywhere/tree/master/src/chrome/content/rules [3] https://github.com/jayvdb/https-everywhere-py Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/plugins/https_rules/GoogleImages.xml')
-rw-r--r--searx/plugins/https_rules/GoogleImages.xml65
1 files changed, 0 insertions, 65 deletions
diff --git a/searx/plugins/https_rules/GoogleImages.xml b/searx/plugins/https_rules/GoogleImages.xml
deleted file mode 100644
index 0112001e0..000000000
--- a/searx/plugins/https_rules/GoogleImages.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<!--
- For other Google coverage, see GoogleServices.xml.
-
-
- Problematic domains:
-
- - www.google.bo *
- - www.google.co *
- - www.google.ec *
- - www.google.in *
- - www.google.kr *
- - www.google.com.kz **
- - www.google.com.lk *
- - www.google.mx **
- - www.google.sg *
- - www.google.sl *
- - www.google.ug *
- - www.google.vn *
-
- * 404; mismatched, CN: google.com
- ** Works; mismatched, CN: google.com
-
--->
-<ruleset name="Google Images">
-
- <target host="google.*" />
- <target host="www.google.*" />
- <target host="google.co.*" />
- <target host="www.google.co.*" />
- <target host="google.com" />
- <target host="images.google.com" />
- <target host="google.com.*" />
- <target host="www.google.com.*" />
- <!--
- Only handle image-related paths in this ruleset:
- -->
- <exclusion pattern="^http://(?:www\.)?google(?:\.com?)?\.\w{2,3}/(?!(?:advanced_image_search|imghp|.*tb(?:m=isch|s=sbi)))" />
-
-
- <rule from="^http://(?:www\.)?google\.com/"
- to="https://www.google.com/" />
-
- <rule from="^http://images\.google\.com/"
- to="https://images.google.com/" />
-
- <!-- First handle problematic domains:
- -->
- <rule from="^http://(?:www\.)?google\.co/"
- to="https://www.google.com/" />
-
- <rule from="^http://(?:www\.)?google\.(?:co\.)?(in|kr|ug)/"
- to="https://www.google.co.$1/" />
-
- <rule from="^http://(?:www\.)?google\.(?:com\.)?(kz|lk)/"
- to="https://www.google.$1/" />
-
- <rule from="^http://(?:www\.)?google\.(?:com\.)?(bo|ec|mx|sg|sl|vn)/"
- to="https://www.google.com.$1/" />
-
- <!-- And then the rest:
- -->
- <rule from="^http://(?:www\.)?google\.(com?\.)?(ae|ar|at|au|bg|bh|br|ca|ch|cl|co|cr|cu|de|eg|es|fi|fr|gh|gt|hr|id|ie|il|it|jo|jp|jm|ke|kw|lb|ly|my|na|ng|nl|no|nz|om|pa|pe|pk|pl|pt|py|qa|ro|ru|rw|sa|se|sv|th|tr|uk|uy|ve|za|zw)/"
- to="https://www.google.$1$2/" />
-
-</ruleset>