Browse Source

Add a robots.txt

Baptiste Jonglez 10 years ago
parent
commit
712104f240
1 changed files with 4 additions and 0 deletions
  1. 4 0
      peerfinder.py

+ 4 - 0
peerfinder.py

@@ -144,6 +144,10 @@ def get_targets(uuid):
 def homepage():
 def homepage():
     return render_template('home.html')
     return render_template('home.html')
 
 
+@app.route('/robots.txt')
+def robots():
+    return "User-agent: *\nDisallow: /target/\nDisallow: /result/"
+
 @app.route('/submit', methods=['POST'])
 @app.route('/submit', methods=['POST'])
 def submit_job():
 def submit_job():
     if 'target' in request.form:
     if 'target' in request.form: