logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git

GoogleSearch.xml (4555B)


  1. <ruleset name="Google Search">
  2. <target host="google.com" />
  3. <target host="*.google.com" />
  4. <target host="google.com.*" />
  5. <target host="www.google.com.*" />
  6. <target host="google.co.*" />
  7. <target host="www.google.co.*" />
  8. <target host="google.*" />
  9. <target host="www.google.*" />
  10. <!--
  11. Beyond clients1 these do not currently
  12. exist in the ccTLDs, but just in case...
  13. -->
  14. <target host="clients1.google.com.*" />
  15. <target host="clients2.google.com.*" />
  16. <target host="clients3.google.com.*" />
  17. <target host="clients4.google.com.*" />
  18. <target host="clients5.google.com.*" />
  19. <target host="clients6.google.com.*" />
  20. <target host="clients1.google.co.*" />
  21. <target host="clients2.google.co.*" />
  22. <target host="clients3.google.co.*" />
  23. <target host="clients4.google.co.*" />
  24. <target host="clients5.google.co.*" />
  25. <target host="clients6.google.co.*" />
  26. <target host="clients1.google.*" />
  27. <target host="clients2.google.*" />
  28. <target host="clients3.google.*" />
  29. <target host="clients4.google.*" />
  30. <target host="clients5.google.*" />
  31. <target host="clients6.google.*" />
  32. <!-- Some Google pages can generate naive links back to the
  33. unencrypted version of encrypted.google.com, which is
  34. a 301 but theoretically vulnerable to SSL stripping.
  35. -->
  36. <rule from="^http://encrypted\.google\.com/"
  37. to="https://encrypted.google.com/" />
  38. <!-- The most basic case.
  39. -->
  40. <rule from="^http://(?:www\.)?google\.com/search"
  41. to="https://encrypted.google.com/search" />
  42. <!-- A very annoying exception that we
  43. seem to need for the basic case
  44. -->
  45. <exclusion pattern="^http://(?:www\.)?google\.com/search.*tbs=shop" />
  46. <exclusion pattern="^http://clients\d\.google\.com/.*client=products.*" />
  47. <exclusion pattern="^http://suggestqueries\.google\.com/.*client=.*" />
  48. <!-- https://trac.torproject.org/projects/tor/ticket/9713
  49. -->
  50. <exclusion pattern="^http://clients[0-9]\.google\.com/ocsp" />
  51. <!-- This is necessary for image results
  52. links from web search results
  53. -->
  54. <exclusion pattern="^http://(?:www\.)?google\.com/search.*tbm=isch.*" />
  55. <rule from="^http://(?:www\.)?google\.com/about"
  56. to="https://www.google.com/about" />
  57. <!-- There are two distinct cases for these firefox searches -->
  58. <rule from="^http://(?:www\.)?google(?:\.com?)?\.[a-z]{2}/firefox/?$"
  59. to="https://encrypted.google.com/" />
  60. <rule from="^http://(?:www\.)?google(?:\.com?)?\.[a-z]{2}/firefox"
  61. to="https://encrypted.google.com/webhp" />
  62. <rule from="^http://(?:www\.)?google\.com/webhp"
  63. to="https://encrypted.google.com/webhp" />
  64. <rule from="^http://codesearch\.google\.com/"
  65. to="https://codesearch.google.com/" />
  66. <rule from="^http://(?:www\.)?google\.com/codesearch"
  67. to="https://www.google.com/codesearch" />
  68. <rule from="^http://(?:www\.)?google\.com/#"
  69. to="https://encrypted.google.com/#" />
  70. <rule from="^http://(?:www\.)?google\.com/$"
  71. to="https://encrypted.google.com/" />
  72. <!-- Google supports IPv6 search, including
  73. HTTPS with a valid certificate! -->
  74. <rule from="^http://ipv6\.google\.com/"
  75. to="https://ipv6.google.com/" />
  76. <!-- most google international sites look like
  77. "google.fr", some look like "google.co.jp",
  78. and some crazy ones like "google.com.au" -->
  79. <rule from="^http://(www\.)?google(\.com?)?\.([a-z]{2})/(search\?|#)"
  80. to="https://$1google$2.$3/$4" />
  81. <!-- Language preference setting -->
  82. <rule from="^http://(www\.)?google(\.com?)?\.([a-z]{2})/setprefs"
  83. to="https://$1google$2.$3/setprefs" />
  84. <!-- Completion urls look like this:
  85. http://clients2.google.co.jp/complete/search?hl=ja&client=hp&expIds=17259,24660,24729,24745&q=m&cp=1 HTTP/1.1\r\n
  86. -->
  87. <rule from="^http://clients\d\.google\.com/complete/search"
  88. to="https://clients1.google.com/complete/search" />
  89. <rule from="^http://clients\d\.google(\.com?\.[a-z]{2})/complete/search"
  90. to="https://clients1.google.$1/complete/search" />
  91. <rule from="^http://clients\d\.google\.([a-z]{2})/complete/search"
  92. to="https://clients1.google.$1/complete/search" />
  93. <rule from="^http://suggestqueries\.google\.com/complete/search"
  94. to="https://clients1.google.com/complete/search" />
  95. <rule from="^http://(www\.)?google\.(com?\.)?([a-z]{2})/(?:webhp)?$"
  96. to="https://$1google.$2$3/" />
  97. <!-- If there are URL parameters, keep them. -->
  98. <rule from="^http://(www\.)?google\.(com?\.)?([a-z]{2})/(?:webhp)?\?"
  99. to="https://$1google.$2$3/webhp?" />
  100. <!-- teapot -->
  101. <rule from="^http://(www\.)?google(\.com?)?\.([a-z]{2})/teapot"
  102. to="https://$1google$2.$3/teapot" />
  103. </ruleset>