Block requests from TOR

This commit is contained in:
2026-06-23 18:26:51 +02:00
parent 01be0c523e
commit 1cfbb8b8fe
3 changed files with 75 additions and 1 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ func routes() http.Handler {
// --- Geschützt (Session erforderlich) ---
r.Group(func(r chi.Router) {
r.Use(requireAuth)
r.Post("/entry/create", handleCreateEntry)
r.With(blockTOR).Post("/entry/create", handleCreateEntry)
r.Post("/entry/{pid}/vote", handleVote)
r.Post("/entry/{pid}/bump", handleBump)
r.Post("/entry/{pid}/edit", handleEditEntry)