Block requests from TOR
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user