Parcourir la source

Add a robots.txt

Baptiste Jonglez il y a 10 ans
Parent
commit
712104f240
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      peerfinder.py

+ 4 - 0
peerfinder.py

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