Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[enh] robots.txt added

asciimoo822bf2f36d71
diff --git a/searx/webapp.py b/searx/webapp.py
index 403affc37..deb99995e 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -148,6 +148,14 @@ def stats():
stats = get_engines_stats()
return render('stats.html', stats=stats)
[email protected]('/robots.txt', methods=['GET'])
+def robots():
+ return Response("""User-agent: *
+Allow: /
+Allow: /about
+Disallow: /stats
+""", mimetype='text/plain')
+
@app.route('/opensearch.xml', methods=['GET'])
def opensearch():
global opensearch_xml