Skip to content

Commit

Permalink
Create a robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Dec 5, 2024
1 parent 130ed51 commit 4a66e63
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/redirectioneaza/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
),
),
path("allauth/", include("allauth.urls")),
path("robots.txt", StaticPageView.as_view(template_name="robots.txt", content_type="text/plain")),
]
+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
Expand Down
10 changes: 10 additions & 0 deletions backend/templates/v3/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
User-Agent: *
Disallow: /admin/
Disallow: /cron/
Disallow: /api/
Disallow: /contul-meu/
Disallow: /ngo-forms/
Disallow: /donation-forms/

User-agent: GPTBot
Disallow: /

0 comments on commit 4a66e63

Please sign in to comment.