Prevent indexing

This commit is contained in:
redfast00 2019-02-14 20:07:24 +01:00
parent ff0940a5af
commit fdf1bc4153
No known key found for this signature in database
GPG Key ID: 5946E0E34FD0553C
2 changed files with 5 additions and 0 deletions

View File

@ -160,6 +160,9 @@ def random_quote():
return mattermost_response(response)
return mattermost_response('No quotes found matching "{}"'.format(text_contains), ephemeral=True)
@app.route('/robots.txt', methods=['GET'])
def get_robots():
return render_template('robots.txt')
@app.route('/', methods=['GET'])
def list_quotes():

2
app/templates/robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Disallow: /