Protect dictionary from bots.
authorRadek Czajka <rczajka@rczajka.pl>
Fri, 24 Apr 2026 09:48:19 +0000 (11:48 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Fri, 24 Apr 2026 09:48:19 +0000 (11:48 +0200)
src/dictionary/urls.py
src/wolnelektury/static/root/robots.txt

index 8f11ac8..5413445 100644 (file)
@@ -1,9 +1,10 @@
 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
 #
+from django.contrib.auth.decorators import login_required
 from django.urls import path
 from dictionary.views import NotesView
 
 urlpatterns = [
-    path('', NotesView.as_view(), name='dictionary_notes'),
+    path('', login_required(NotesView.as_view()), name='dictionary_notes'),
 ]
index 913cfaa..a679664 100644 (file)
@@ -7,4 +7,4 @@ Disallow: /szukaj/
 Disallow: /uzytkownik/
 Disallow: /zegar/
 Disallow: /katalog/custompdf/
-
+Disallow: /przypisy/