ZainLink is a URL shortener built with Flask, MongoDB, and HTML. Users can sign up, shorten URLs, and manage their shortened links from a dashboard.
-
User Signup / Login / Logout
-
CAPTCHA protection with Google reCAPTCHA
-
Custom or random short links
-
Google Analytics integration
-
An admin account which can:
-
View all shortened links
-
Delete any user’s link
-
Users can:
- View only their links
- Delete their own links
- Backend: Flask + PyMongo
- Database: MongoDB
- Frontend: HTML + JS + CSS
- Backend Hosting: Render
- Frontend Hosting: Github Pages
Create a .env file with these variables:
RECAPTCHA_SECRET– Google reCAPTCHA v2 secret keyFLASK_SECRET_KEY– A secret key used to sign session cookiesMONGO_URI– MongoDB connection stringADMIN_EMAIL– Email used to create the admin accountADMIN_PASSWORD– Password for the admin accountGA_MEASUREMENT_ID– Google Analytics tag