A powerful, session-based URL shortener service built with Netlify Functions. Features user authentication, link management, and a mandatory 10-second countdown before redirects.
- 🔗 URL Shortening: Convert long URLs to short, memorable links
- 🔐 Session-Based Auth: Secure user authentication with token management
- ⏱️ 10-Second Countdown: Mandatory wait before redirect
- 📊 Click Tracking: Monitor link performance and analytics
- 👤 User Dashboard: View and manage your shortened links
- 💾 JSON Database: No external database required
- 🎨 Modern UI: Clean, responsive design with gradient backgrounds
- 🔒 Security: Password hashing, session validation, CSRF protection
Live Demo: irolinks.netlify.app
Irolinks/
├──index.html # Main html
├──netlify.toml # Netlify config
├──package.json # Package dependencies
├──README.md # This file
└──netlify/
└── functions/
└── link.js # Backend
- Click the "Deploy to Netlify" button above
- Connect your GitHub account
- Netlify will automatically deploy your site
# Clone the repository
git clone https://github.com/IROTECHLAB/irolinks.git
cd irolinks
# Deploy to Netlify
netlify deployOption 3: Fork and Customize
- Fork the repository on GitHub
- Make your changes
- Connect to Netlify for automatic deployment
🔧 Configuration
Environment Variables (Optional - for Firebase)
If you want to use Firebase instead of JSON storage, add these in Netlify:
FIREBASE_PROJECT_ID = your-project-id
FIREBASE_PRIVATE_KEY = your-private-key
FIREBASE_CLIENT_EMAIL = your-client-email
FIREBASE_API_KEY = your-api-key
FIREBASE_AUTH_DOMAIN = your-auth-domain
📝 How to Use
- Sign Up: Create a new account
- Login: Access your dashboard
- Shorten URLs: Paste long URLs to create short links
- Share: Copy and share your shortened links
- Track: Monitor clicks and performance in your dashboard
🔄 Redirect Flow
- User visits short link (e.g., irolinks.netlify.app/link?id=abc123)
- 10-second countdown page appears
- After countdown, user is redirected to destination URL
- Click count is incremented
🛡️ Security Features
· SHA-256 password hashing · Session token management · Auto-cleanup of expired sessions · CORS protection · Input validation and sanitization
📱 Supported Browsers
· Chrome 60+ · Firefox 55+ · Safari 11+ · Edge 79+ · Via Browser · Mobile browsers
🤝 Contributing
- Fork the repository
- Create your feature branch (git checkout -b feature/AmazingFeature)
- Commit your changes (git commit -m 'Add some AmazingFeature')
- Push to the branch (git push origin feature/AmazingFeature)
- Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
📞 Contact & Support
· Demo: https://irolinks.netlify.app · Contact: https://t.me/ironmanhindigaming · Support: https://t.me/ironmanhindigming1 · Updates: https://t.me/irotechlab · GitHub: https://github.com/IROTECHLAB/irolinks
👨💻 Created By
Deepseek & IRONMAN Open Source URL Shortener Service
Made with ❤️ for the open source community
