answer-captcha.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <!DOCTYPE html>
  2. <html lang="en" data-content_root="../">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>Answer CAPTCHA from server’s IP &#8212; SearXNG Documentation (2025.4.30+fd33559cf)</title>
  8. <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=6625fa76" />
  9. <link rel="stylesheet" type="text/css" href="../_static/searxng.css?v=52e4ff28" />
  10. <link rel="stylesheet" type="text/css" href="../_static/tabs.css?v=a5c4661c" />
  11. <script src="../_static/documentation_options.js?v=b12b0e12"></script>
  12. <script src="../_static/doctools.js?v=9a2dae69"></script>
  13. <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
  14. <script data-project="searxng" data-version="2025.4.30+fd33559cf" src="../_static/describe_version.js?v=fa7f30d0"></script>
  15. <script src="../_static/tabs.js?v=3030b3cb"></script>
  16. <link rel="index" title="Index" href="../genindex.html" />
  17. <link rel="search" title="Search" href="../search.html" />
  18. <link rel="next" title="Favicons" href="searx.favicons.html" />
  19. <link rel="prev" title="SearXNG maintenance" href="update-searxng.html" />
  20. </head><body>
  21. <div class="related" role="navigation" aria-label="Related">
  22. <h3>Navigation</h3>
  23. <ul>
  24. <li class="right" style="margin-right: 10px">
  25. <a href="../genindex.html" title="General Index"
  26. accesskey="I">index</a></li>
  27. <li class="right" >
  28. <a href="../py-modindex.html" title="Python Module Index"
  29. >modules</a> |</li>
  30. <li class="right" >
  31. <a href="searx.favicons.html" title="Favicons"
  32. accesskey="N">next</a> |</li>
  33. <li class="right" >
  34. <a href="update-searxng.html" title="SearXNG maintenance"
  35. accesskey="P">previous</a> |</li>
  36. <li class="nav-item nav-item-0"><a href="../index.html">SearXNG Documentation (2025.4.30+fd33559cf)</a> &#187;</li>
  37. <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Administrator documentation</a> &#187;</li>
  38. <li class="nav-item nav-item-this"><a href="">Answer CAPTCHA from server’s IP</a></li>
  39. </ul>
  40. </div>
  41. <div class="document">
  42. <div class="documentwrapper">
  43. <div class="bodywrapper">
  44. <div class="body" role="main">
  45. <section id="answer-captcha-from-server-s-ip">
  46. <h1>Answer CAPTCHA from server’s IP<a class="headerlink" href="#answer-captcha-from-server-s-ip" title="Link to this heading">¶</a></h1>
  47. <p>With a SSH tunnel we can send requests from server’s IP and solve a CAPTCHA that
  48. blocks requests from this IP. If your SearXNG instance is hosted at
  49. <code class="docutils literal notranslate"><span class="pre">example.org</span></code> and your login is <code class="docutils literal notranslate"><span class="pre">user</span></code> you can setup a proxy simply by
  50. <a class="extlink-man reference external" href="https://manpages.debian.org/jump?q=ssh">ssh</a>:</p>
  51. <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># SOCKS server: socks://127.0.0.1:8080</span>
  52. $<span class="w"> </span>ssh<span class="w"> </span>-q<span class="w"> </span>-N<span class="w"> </span>-D<span class="w"> </span><span class="m">8080</span><span class="w"> </span>user@example.org
  53. </pre></div>
  54. </div>
  55. <p>The <code class="docutils literal notranslate"><span class="pre">socks://localhost:8080</span></code> from above can be tested by:</p>
  56. <div class="sphinx-tabs docutils container">
  57. <div aria-label="Tabbed content" class="closeable" role="tablist"><button aria-controls="panel-0-c2VydmVyJ3MgSVA=" aria-selected="true" class="sphinx-tabs-tab group-tab" id="tab-0-c2VydmVyJ3MgSVA=" name="c2VydmVyJ3MgSVA=" role="tab" tabindex="0">server’s IP</button><button aria-controls="panel-0-ZGVza3RvcCdzIElQ" aria-selected="false" class="sphinx-tabs-tab group-tab" id="tab-0-ZGVza3RvcCdzIElQ" name="ZGVza3RvcCdzIElQ" role="tab" tabindex="-1">desktop’s IP</button></div><div aria-labelledby="tab-0-c2VydmVyJ3MgSVA=" class="sphinx-tabs-panel group-tab" id="panel-0-c2VydmVyJ3MgSVA=" name="c2VydmVyJ3MgSVA=" role="tabpanel" tabindex="0"><div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>curl<span class="w"> </span>-x<span class="w"> </span>socks://127.0.0.1:8080<span class="w"> </span>http://ipecho.net/plain
  58. n.n.n.n
  59. </pre></div>
  60. </div>
  61. </div><div aria-labelledby="tab-0-ZGVza3RvcCdzIElQ" class="sphinx-tabs-panel group-tab" hidden="true" id="panel-0-ZGVza3RvcCdzIElQ" name="ZGVza3RvcCdzIElQ" role="tabpanel" tabindex="0"><div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$<span class="w"> </span>curl<span class="w"> </span>http://ipecho.net/plain
  62. x.x.x.x
  63. </pre></div>
  64. </div>
  65. </div></div>
  66. <p>In the settings of the WEB browser open the <em>“Network Settings”</em> and setup a
  67. proxy on <code class="docutils literal notranslate"><span class="pre">SOCKS5</span> <span class="pre">127.0.0.1:8080</span></code> (see screenshot below). In the WEB browser
  68. check the IP from the server is used:</p>
  69. <ul class="simple">
  70. <li><p><a class="reference external" href="http://ipecho.net/plain">http://ipecho.net/plain</a></p></li>
  71. </ul>
  72. <p>Now open the search engine that blocks requests from your server’s IP. If you
  73. have <a class="reference external" href="https://github.com/searxng/searxng/issues/2011#issuecomment-1553317619">issues with the qwant engine</a>,
  74. solve the CAPTCHA from <a class="reference external" href="https://www.qwant.com/">qwant.com</a>.</p>
  75. <hr class="docutils" />
  76. <div class="sphinx-tabs docutils container">
  77. <div aria-label="Tabbed content" class="closeable" role="tablist"><button aria-controls="panel-1-RmlyZWZveA==" aria-selected="true" class="sphinx-tabs-tab group-tab" id="tab-1-RmlyZWZveA==" name="RmlyZWZveA==" role="tab" tabindex="0">Firefox</button></div><div aria-labelledby="tab-1-RmlyZWZveA==" class="sphinx-tabs-panel group-tab" id="panel-1-RmlyZWZveA==" name="RmlyZWZveA==" role="tabpanel" tabindex="0"><figure class="align-default" id="id1">
  78. <img alt="FFox proxy on SOCKS5, 127.0.0.1:8080" src="../_images/ffox-setting-proxy-socks.png" />
  79. <figcaption>
  80. <p><span class="caption-number">Fig. 1 </span><span class="caption-text">Firefox’s network settings</span><a class="headerlink" href="#id1" title="Link to this image">¶</a></p>
  81. </figcaption>
  82. </figure>
  83. </div></div>
  84. <div class="admonition-man-ssh-manual admonition">
  85. <p class="admonition-title"><a class="extlink-man reference external" href="https://manpages.debian.org/jump?q=ssh">ssh</a> manual:</p>
  86. <dl class="simple">
  87. <dt>-D [bind_address:]port</dt><dd><p>Specifies a local “dynamic” application-level port forwarding. This works
  88. by allocating a socket to listen to port on the local side .. Whenever a
  89. connection is made to this port, the connection is forwarded over the
  90. secure channel, and the application protocol is then used to determine
  91. where to connect to from the remote machine .. ssh will act as a SOCKS
  92. server ..</p>
  93. </dd>
  94. </dl>
  95. <dl class="option-list">
  96. <dt><kbd><span class="option">-N</span></kbd></dt>
  97. <dd><p>Do not execute a remote command. This is useful for just forwarding ports.</p>
  98. </dd>
  99. </dl>
  100. </div>
  101. </section>
  102. <div class="clearer"></div>
  103. </div>
  104. </div>
  105. </div>
  106. <span id="sidebar-top"></span>
  107. <div class="sphinxsidebar" role="navigation" aria-label="Main">
  108. <div class="sphinxsidebarwrapper">
  109. <p class="logo"><a href="../index.html">
  110. <img class="logo" src="../_static/searxng-wordmark.svg" alt="Logo of SearXNG"/>
  111. </a></p>
  112. <h3><a href="../index.html">Table of Contents</a></h3>
  113. <ul class="current">
  114. <li class="toctree-l1"><a class="reference internal" href="../user/index.html">User information</a></li>
  115. <li class="toctree-l1"><a class="reference internal" href="../own-instance.html">Why use a private instance?</a></li>
  116. <li class="toctree-l1 current"><a class="reference internal" href="index.html">Administrator documentation</a><ul class="current">
  117. <li class="toctree-l2"><a class="reference internal" href="settings/index.html">Settings</a></li>
  118. <li class="toctree-l2"><a class="reference internal" href="installation.html">Installation</a></li>
  119. <li class="toctree-l2"><a class="reference internal" href="installation-docker.html">Docker Container</a></li>
  120. <li class="toctree-l2"><a class="reference internal" href="installation-scripts.html">Installation Script</a></li>
  121. <li class="toctree-l2"><a class="reference internal" href="installation-searxng.html">Step by step installation</a></li>
  122. <li class="toctree-l2"><a class="reference internal" href="installation-uwsgi.html">uWSGI</a></li>
  123. <li class="toctree-l2"><a class="reference internal" href="installation-nginx.html">NGINX</a></li>
  124. <li class="toctree-l2"><a class="reference internal" href="installation-apache.html">Apache</a></li>
  125. <li class="toctree-l2"><a class="reference internal" href="update-searxng.html">SearXNG maintenance</a></li>
  126. <li class="toctree-l2 current"><a class="current reference internal" href="#">Answer CAPTCHA from server’s IP</a></li>
  127. <li class="toctree-l2"><a class="reference internal" href="searx.favicons.html">Favicons</a></li>
  128. <li class="toctree-l2"><a class="reference internal" href="searx.limiter.html">Limiter</a></li>
  129. <li class="toctree-l2"><a class="reference internal" href="api.html">Administration API</a></li>
  130. <li class="toctree-l2"><a class="reference internal" href="architecture.html">Architecture</a></li>
  131. <li class="toctree-l2"><a class="reference internal" href="plugins.html">List of plugins</a></li>
  132. <li class="toctree-l2"><a class="reference internal" href="buildhosts.html">Buildhosts</a></li>
  133. </ul>
  134. </li>
  135. <li class="toctree-l1"><a class="reference internal" href="../dev/index.html">Developer documentation</a></li>
  136. <li class="toctree-l1"><a class="reference internal" href="../utils/index.html">DevOps tooling box</a></li>
  137. <li class="toctree-l1"><a class="reference internal" href="../src/index.html">Source-Code</a></li>
  138. </ul>
  139. <h3>Project Links</h3>
  140. <ul>
  141. <li><a href="https://github.com/searxng/searxng/tree/master">Source</a>
  142. <li><a href="https://github.com/searxng/searxng/wiki">Wiki</a>
  143. <li><a href="https://searx.space">Public instances</a>
  144. <li><a href="https://github.com/searxng/searxng/issues">Issue Tracker</a>
  145. </ul><h3>Navigation</h3>
  146. <ul>
  147. <li><a href="../index.html">Overview</a>
  148. <ul>
  149. <li><a href="index.html">Administrator documentation</a>
  150. <ul>
  151. <li>Previous: <a href="update-searxng.html" title="previous chapter">SearXNG maintenance</a>
  152. <li>Next: <a href="searx.favicons.html" title="next chapter">Favicons</a></ul>
  153. </li>
  154. </ul>
  155. </li>
  156. </ul>
  157. <search id="searchbox" style="display: none" role="search">
  158. <h3 id="searchlabel">Quick search</h3>
  159. <div class="searchformwrapper">
  160. <form class="search" action="../search.html" method="get">
  161. <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
  162. <input type="submit" value="Go" />
  163. </form>
  164. </div>
  165. </search>
  166. <script>document.getElementById('searchbox').style.display = "block"</script>
  167. <div role="note" aria-label="source link">
  168. <h3>This Page</h3>
  169. <ul class="this-page-menu">
  170. <li><a href="../_sources/admin/answer-captcha.rst.txt"
  171. rel="nofollow">Show Source</a></li>
  172. </ul>
  173. </div>
  174. </div>
  175. </div>
  176. <div class="clearer"></div>
  177. </div>
  178. <div class="footer" role="contentinfo">
  179. &#169; Copyright SearXNG team.
  180. </div>
  181. </body>
  182. </html>