🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes
Article #377

rate limiting in rslight

#377
From: Retro Guy
Date: Wed, 06 Jan 2021 10:06
13 lines
1831 bytes
I've finally set up rate limiting in rslight so that it's not necessary to do so with web server settings.

The server works great for this as long as each client has it's own ip address, which is fine in clearnet and i2p, but does not work well in tor. tor users all have the same ip address, so it ends up blocking all tor users if one is abusing the server.

I'm now limiting per session, and so far it seems to be working fine. It should be fine for clearnet and tor also, but it's really for tor. Most of my tor traffic is badly configured crawlers that just hit the server as fast as they possibly can, so you get many hits per second. Now the logs show the crawlers getting a '429' and regular users are still able to load the site.

I'll keep testing this and see how it goes.

Retro Guy

-- 
Posted on Rocksolid Light
news.novabbs.org
Technical Details
Message-ID: <cca9cd3838da484861b2129d7d32bb89$1@news.novabbs.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!rocksolid2!.POSTED.localhost!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <cca9cd3838da484861b2129d7d32bb89$1@news.novabbs.org>
Subject: rate limiting in rslight
Date: Wed, 6 Jan 2021 10:06:19 +0000
From: retro.guy@rocksolidbbs.com (Retro Guy)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!rocksolid2!.POSTED.localhost!not-for-mail
Newsgroups: rocksolid.nodes
Organization: Rocksolid Light
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: novabbs.org; posting-account="retrobbs1"; posting-host="localhost:127.0.0.1";
 logging-data="26704"; mail-complaints-to="usenet@novabbs.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.org
X-Rslight-Site: $2y$10$YxEGNIzfuNIiwhxjk84LYOX.htRsaQn6pOGb45NZ6XvQxx9hxAtX6