Skip to content

Commit

Permalink
404 some well known names.
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Sep 14, 2011
1 parent 25c7d1c commit 70c6cb1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion webstore/web.py
@@ -1,6 +1,6 @@
import logging

from flask import request, g, render_template
from flask import request, g, render_template, abort

from webstore.core import app
from webstore.helpers import entry_point_function
Expand All @@ -25,6 +25,13 @@ def login():
response.headers['WWW-Authenticate'] = 'Basic realm="WebStore access"'
return response

@app.route('/favicon.ico')
@app.route('/robots.txt')
@app.route('/index.html')
@app.route('/scripts/<path:any>')
def handle(any=None):
abort(404)

@app.route('/')
def home():
return render_template('index.html')
Expand Down

0 comments on commit 70c6cb1

Please sign in to comment.