BareRTC/pkg
Noah Petherbridge 25f4fcba0d Spam Detection for Hyperlinks on DMs
Add spam detection in case a user copy/pastes a hyperlink to everybody
on chat via their DMs:

* If the same link is copied to many different people within a time
  window, the user can be kicked from the chat room with a warning.
* The server remembers rate limits by username, so if they log back in
  and continue to spam the same links, they instead receive a temporary
  chat ban.
* The spam threshold, time window and ban hours are configurable in the
  BareRTC settings.toml.

Other fixes:

* The front-end will send a "me" update with its current status and
  video setting in the 'onLoggedIn' handler. This should help alleviate
  rough server reboots when a ton of idle users are online, so they
  don't spam "me" updates to correct their status once the WhoLists
  begin to roll in.
2025-05-02 21:35:48 -07:00
..
config Spam Detection for Hyperlinks on DMs 2025-05-02 21:35:48 -07:00
jwt Moderator rule: nodvd (exempt from dark video detector) 2025-01-03 23:15:05 -08:00
log Initial commit 2023-01-10 22:38:48 -08:00
messages Invite to watch my webcam 2025-03-30 15:33:58 -07:00
models Switch to mattn/go-sqlite3 2025-03-17 17:58:03 -07:00
spam Spam Detection for Hyperlinks on DMs 2025-05-02 21:35:48 -07:00
util A bit more logging to debug WebSocket issues 2023-02-08 20:01:06 -08:00
api.go History Modal + Dark Detector Fixes 2025-02-14 18:12:39 -08:00
banned_users.go Spam Detection for Hyperlinks on DMs 2025-05-02 21:35:48 -07:00
commands.go Spam Detection for Hyperlinks on DMs 2025-05-02 21:35:48 -07:00
config.go Re-sign JWT tokens for safer server deployments 2023-04-19 19:55:39 -07:00
echo_messages.go Echo: Skip messages sent by blocked usernames 2025-03-09 15:52:34 -07:00
expand_media.go YouTube link embeds 2023-03-24 22:47:58 -07:00
handlers.go Spam Detection for Hyperlinks on DMs 2025-05-02 21:35:48 -07:00
images.go Photo sharing support 2023-03-21 21:29:24 -07:00
logging.go Fix webcam freezing issues with mutualOpen video connections 2023-11-18 15:38:02 -08:00
markdown.go JWT Token-based Authentication 2023-02-05 17:42:09 -08:00
message_filters.go Include DM context in reported messages 2024-01-20 15:17:02 -08:00
moderation_rules.go Moderator rule: nodvd (exempt from dark video detector) 2025-01-03 23:15:05 -08:00
pages.go Add webcam troubleshooting tips to the About page 2024-10-17 20:13:08 -07:00
polling_api.go Add DisconnectNow API endpoint 2024-03-15 15:59:42 -07:00
server.go Don't send WhoList within 15 seconds of server start 2025-03-21 20:49:26 -07:00
subscriber.go Spam Detection for Hyperlinks on DMs 2025-05-02 21:35:48 -07:00
webhook_messages.go Webhooks and Report Users 2023-08-12 21:35:41 -07:00
webhooks.go Send admin reports on /nsfw command + Fixes 2025-02-17 12:50:06 -08:00
websocket.go JWT Token Chat Moderation Rules 2024-09-19 17:29:08 -07:00