on master help sign in
[enh] robots.txt added
commit822bf2f36d715531d40cbd84cd825c5bd4da3a7a authorasciimoo <asciimoo@gmail.com> dateSun 1 Dec 2013, 16:10 (13 years ago) parentd504142
1 file changed+8
searx/webapp.py+8
searx/webapp.py+8
@@ -148,6 +148,14 @@ def stats():
148148 stats = get_engines_stats()
149149 return render('stats.html', stats=stats)
150150
151+@app.route('/robots.txt', methods=['GET'])
152+def robots():
153+ return Response("""User-agent: *
154+Allow: /
155+Allow: /about
156+Disallow: /stats
157+""", mimetype='text/plain')
158+
151159@app.route('/opensearch.xml', methods=['GET'])
152160def opensearch():
153161 global opensearch_xml