summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-12-01 16:10:38 +0100
committerasciimoo <asciimoo@gmail.com>2013-12-01 16:10:38 +0100
commit822bf2f36d715531d40cbd84cd825c5bd4da3a7a (patch)
tree86cbb66204b81db99c38f0ff56534fee0b8dfc9b /searx
parentd50414275c9dce9dd6084f1a1ca1b5ce08a987ab (diff)
[enh] robots.txt added
Diffstat (limited to 'searx')
-rw-r--r--searx/webapp.py8
1 files changed, 8 insertions, 0 deletions
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)
+@app.route('/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