itsmymeme is a lightweight meme protection tool designed for Discord servers. It safeguards your cherished memes from being pilfered by unauthorized users. By scrutinizing the User-Agent of incoming requests, it can discern whether the request originates from Discord. If not, it promptly returns a 403 Forbidden error, ensuring your memes remain safe and sound.
To install itsmymeme, simply follow these steps:
git clone https://github.com/Staninna/itsmymeme.git
cd itsmymeme
cargo build --release
Once installed, launch itsmymeme with the following command:
./target/release/itsmymeme
itsmymeme offers flexibility through easy configuration. Customize its behavior by editing the .env
file:
FORBIDDEN=Unauthorized access! Keep your hands off my memes! # Customize the forbidden message (optional)
NOT_FOUND=Oops! This meme seems to have vanished! or never existed! # Customize the not found message (optional)
PASSWORD=password # Set a secure password for uploading memes
CONTENT_DIR=content # Specify the directory where memes are stored relative to the binary (optional)
IP=0.0.0.0 # Set the IP address to listen on
PORT=8080 # Set the port to listen on
DOMAIN=http://localhost:8080 # Set the domain to use in the links
Retrieve a specific meme by its filename.
Securely upload your memes.
View a list of all available memes.
This route is not implemented yet.
This project is licensed under the LICENSE agreement.
This project was inspired by this repository. Big thanks to the author for the idea!