Browse Source

[enh] robots.txt added

asciimoo 11 years ago
parent
commit
822bf2f36d
1 changed files with 8 additions and 0 deletions
  1. 8 0
      searx/webapp.py

+ 8 - 0
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