|Neil d8094caddc||1 day ago|
|assets||1 day ago|
|db||1 year ago|
|migrations||10 months ago|
|screenshots||10 months ago|
|src||1 month ago|
|templates||1 day ago|
|.gitignore||10 months ago|
|Cargo.toml||1 month ago|
|LICENSE||1 year ago|
|README.md||1 month ago|
|config.toml.sample||1 month ago|
|lang.json||1 month ago|
|url_from_blacklist.txt||10 months ago|
|url_to_blacklist.txt||1 month ago|
|url_to_softblacklist.txt||1 month ago|
Warning: A few steps are necessary to migrate the database from rs-short 1.x.x. Please check the release notes for details.
Link shortener in Rust.
Developed to be as minimalist and lightweight as possible.
Official instance: https://s.42l.fr/
Admin page for users when they create a link:
Page displayed when a link is marked as phishing by the server administrator:
git clone https://git.42l.fr/42l/rs-short.git
Edit what you need. You might want to change the following files:
assets/hoster-logo.svg: replace with the logo of your organization
assets/logo.svg: the software logo
assets/themes/light/background.jpg: the default background for the light theme
config.toml and edit its values to suit your needs:
Edit blacklists at your convenience.
url_from_blacklist.list: Any client that submits a link name fully matching one of the elements in this list will get a 403 Forbidden HTTP status code.
url_to_softblacklist.list: Any client that submits an URL containing one of the elements in this list will get denied with a friendly warning.
url_to_blacklist.list: Any client that submits an URL containing one of the elements in this list will get a 403 Forbidden HTTP status code.
You can configure a
fail2ban instance and watch your favourite reverse-proxy logs to see which IPs are getting a 403 and ban accordingly for the duration of your choice.
cargo run --release
Here are many ways to contribute:
init.rsand add your language in the ValidLanguages structure.
If you like the work done on this project, please consider to donate or join the association. Thank you!