Merge pull request #2495 from fazae/1612-robots-txt

Adding a restrictive robot.txt file
This commit is contained in:
Antoine Nguyen
2022-04-30 10:21:01 +02:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
User-Agent: *
Disallow: /
+2
View File
@@ -1,6 +1,7 @@
"""Core urls."""
from django.urls import path
from django.views.generic.base import TemplateView
from . import views
@@ -31,4 +32,5 @@ urlpatterns = [
path('user/profile/', views.profile, name="user_profile"),
path('user/api/', views.api_access, name="user_api_access"),
path('user/security/', views.security, name="user_security"),
path('robots.txt', TemplateView.as_view(template_name="core/robots.txt", content_type="text/plain")),
]