rs-short
Minimal Rust link shortener with anti-phishing and anti-spam

rs-short is a minimal, lightweight link shortener written in Rust. It focuses on low resource usage, simple templated server-side rendering, and built-in protections against spam and phishing.
Key Features
- Server-side rendered UI using Askama templates (no JavaScript required)
- Supports SQLite and optional PostgreSQL or MySQL backends
- Robust caching to keep serving content during database locks
- Built-in captcha to reduce automated spam submissions
- Phishing and suspicious-link detection, plus regex-based URL blocking with a default blocklist
- Click counting, user-initiated link deletion, and the ability to flag links as phishing
- Localization support (multiple languages) and light/dark themes
- Privacy-oriented design: no tracking features and user IPs are not stored in the database
Use Cases
- Self-hosted short links for organizations, communities, or personal use
- Safer public URL shortener with basic anti-spam and anti-phishing controls
- Low-resource URL shortening for small servers and homelab environments
Limitations and Considerations
- The built-in captcha is intentionally minimal and may not be sufficient for all high-abuse environments.
- SQLite is supported, but deployments with higher write concurrency may prefer PostgreSQL or MySQL.
rs-short is a good fit when you want a straightforward URL shortener that is fast, memory-efficient, and designed with privacy and abuse resistance in mind. Its small codebase and server-side templates make it easy to audit and customize for simple deployments.
Categories:
Tags:
Tech Stack:
Similar Services

Dub
Open-source link attribution platform for short links and conversions
Dub is an open-source link attribution platform for branded short links, real-time analytics, conversion tracking, webhooks, and affiliate/referral programs.

YOURLS
Self-hosted URL shortener with analytics, API, and plugins
YOURLS is a self-hosted PHP URL shortener with custom short links, a developer API, detailed click analytics, and an extensible plugin architecture.

Kutt
Modern URL shortener with custom domains, stats, and an API
Open-source, self-hostable URL shortener with custom domains, link management, private analytics, and a REST API.

Sink
Link shortener with analytics running on Cloudflare
Sink is a fast, secure link shortener with built-in analytics, custom slugs, link expiration, and serverless deployment on Cloudflare Workers or Pages.

Shlink
Self-hosted URL shortener with REST API and CLI
PHP-based self-hosted URL shortener for your own domains, with REST API, CLI management, and visit analytics including anonymized stats and geolocation.
MicroBin
Secure pastebin for text and file sharing with URL shortening
MicroBin is a lightweight, secure pastebin for sharing text, files, and short URLs with optional encryption, expiration controls, and raw file serving.
Rust
TOML