Commit 61c1a2b7 authored by delanoe's avatar delanoe

[FEAT] Adding robots.txt rules (/api/ should not be known and we do not...

[FEAT] Adding robots.txt rules (/api/ should not be known and we do not divulgate this informations to malwares); check the logs to improve it.
parent 0bf892d4
......@@ -39,6 +39,15 @@ def about(request):
},
)
def robots(request):
'''About Gargantext, its team and sponsors
'''
return render(
template_name = 'pages/main/robots.txt',
request = request,
context = {},
)
def maintenance(request):
'''Gargantext out of service
......
......@@ -10,6 +10,7 @@ urlpatterns = [
# presentation pages
url(r'^$', main.home),
url(r'^about/?$', main.about),
url(r'^robots.txt$', main.robots),
# maintenance mode
url(r'^maintenance/?$', main.maintenance),
# authentication
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment