From 822bf2f36d715531d40cbd84cd825c5bd4da3a7a Mon Sep 17 00:00:00 2001 From: asciimoo Date: Sun, 1 Dec 2013 16:10:38 +0100 Subject: [PATCH] [enh] robots.txt added --- searx/webapp.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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