Skip to content

Repository files navigation

πŸ”— Smart Link Intelligence Platform

Smart Link Intelligence Flask SQLite Bootstrap JavaScript HTML5 CSS3

πŸš€ Next-Generation Behavior-Aware Link Shortener with Advanced Analytics

Transform simple links into intelligent, adaptive experiences that learn from user behavior

🎯 Features β€’ πŸ› οΈ Installation β€’ πŸ“Š Analytics β€’ πŸ”§ API β€’ 🎨 Screenshots


🌟 What Makes It Special?

Smart Link Intelligence isn't just another URL shortener. It's an intelligent routing system that adapts to user behavior, provides deep analytics, and maximizes engagement through smart decision-making.

🎨 Professional Landing Experience

  • Modern Landing Page: Beautiful, responsive landing page with professional design
  • Gradient Aesthetics: Purple-to-blue gradient theme with glass morphism effects
  • Interactive Elements: Smooth animations, hover effects, and engaging user interface
  • Clear Value Proposition: Immediately showcases platform capabilities and benefits
graph TD
    A[🌐 Landing Page] --> B{πŸ‘€ User Status}
    B -->|New User| C[πŸ“ Sign Up]
    B -->|Existing User| D[πŸ” Sign In]
    C --> E[πŸ“Š Dashboard]
    D --> E
    E --> F[πŸ”— Create Smart Links]
    F --> G{πŸ›‘οΈ DDoS Check}
    G -->|βœ… Safe| H{🧠 Behavior Analysis}
    G -->|⚠️ Suspicious| I[🚫 Block/Rate Limit]
    H -->|First Visit| J[😊 Curious User]
    H -->|Return Visit| K[πŸ€” Interested User]
    H -->|Multiple Visits| L[πŸ”₯ Highly Engaged]
    
    J --> M[πŸ“± Primary URL]
    K --> N[πŸ”„ Returning URL]
    L --> O[🎯 CTA URL]
    
    M --> P[πŸ“Š Analytics Tracking]
    N --> P
    O --> P
    
    P --> Q[πŸ›‘οΈ Security Monitoring]
    Q --> R[πŸ“ˆ Smart Insights]
    I --> S[πŸ”’ Protection Dashboard]
Loading

✨ Features

🎯 Smart Routing Engine

  • Behavior-Based Routing: Automatically routes users based on engagement level
  • Progressive Journeys: Guide users through custom conversion funnels
  • Custom Behavior Rules: Define your own thresholds for visitor classification
  • Geographic Intelligence: Region-based analytics and routing

🧠 Intelligent Behavior System

  • Flexible Thresholds: Set custom visit and click counts for behavior classification
  • Multiple Rule Sets: Create different rules for different use cases
  • Real-Time Classification: Dynamic visitor behavior analysis
  • Rule Management: Easy-to-use interface for creating and managing behavior rules

πŸ›‘οΈ Advanced Security & Protection

  • Multi-Layer DDoS Protection: Automatic detection and mitigation of distributed attacks
  • Rate Limiting: Intelligent request throttling per IP and link
  • Burst Attack Prevention: Real-time detection of rapid-fire requests
  • Automatic Link Protection: Self-healing links that disable under attack
  • Security Dashboard: Monitor threats and manage protection levels

πŸ€– AI-Powered Support

  • Smart Chatbot: Integrated AI assistant to help users navigate the platform
  • Automated Assistance: Quick answers for common queries and troubleshooting

⚑ System Control

  • Comprehensive Admin Panel: Full administrative control system to manage users, ads, and platform health.
  • Centralized Management: Unified interface for system-wide configuration and monitoring.

🎨 Professional User Experience

  • Stunning Landing Page: Modern, responsive design with gradient aesthetics and glass morphism
  • Intuitive Navigation: Clear user journey from landing to dashboard
  • Interactive Elements: Smooth animations, hover effects, and engaging UI components
  • Mobile-First Design: Optimized for all devices and screen sizes
  • Smart Ad System: Unified ad platform supporting both user-created and system-wide advertisements.
  • Custom Branding: Personalized ad creation with image support
  • Premium Features: Ad-free experience and advanced analytics for Elite Pro users
  • Link Management: Delete, track, and manage all links from one dashboard
  • Export Capabilities: Excel/CSV export with shareable analytics

πŸ› οΈ Installation

πŸ“‹ Prerequisites

  • Python 3.8+ 🐍
  • pip package manager πŸ“¦
  • Modern web browser 🌐

⚑ Quick Start

# 1️⃣ Clone the repository
git clone https://github.com/yourusername/smart-link-intelligence.git
cd smart-link-intelligence

# 2️⃣ Create virtual environment
python -m venv .venv

# 3️⃣ Activate virtual environment
# Windows
.venv\Scripts\activate
# macOS/Linux
source .venv/bin/activate

# 4️⃣ Install dependencies
pip install -r requirements.txt

# 5️⃣ Launch the application
python app.py

πŸŽ‰ That's it! Visit http://localhost:5000 to see the beautiful landing page and start using Smart Link Intelligence.

πŸ”§ Configuration

Create a .env file for custom configuration:

# Flask Configuration
FLASK_SECRET=your-super-secret-key-here
FLASK_ENV=development

# Database Configuration
DATABASE_URL=sqlite:///smart_links.db

# Analytics Configuration
ANALYTICS_RETENTION_DAYS=90
MAX_LINKS_PER_USER=100

πŸ—οΈ Application Structure

The application follows a clean routing structure:

🌐 Routes & Navigation Flow:

β”Œβ”€ / (Root)
β”‚  β”œβ”€ πŸ‘€ Not Logged In β†’ Landing Page
β”‚  └─ πŸ” Logged In β†’ Redirect to Dashboard
β”‚
β”œβ”€ /login β†’ Sign In Page
β”œβ”€ /signup β†’ Sign Up Page  
β”œβ”€ /dashboard β†’ Main Dashboard (requires auth)
β”œβ”€ /r/<code> β†’ Smart Link Redirect
β”œβ”€ /ads/<code> β†’ Ad Display Page
β”œβ”€ /analytics-overview β†’ Analytics Dashboard
β”œβ”€ /behavior-rules β†’ Custom Rules Management
β”œβ”€ /ddos-protection β†’ Security Dashboard
└─ /create-ad β†’ Ad Creation Interface

🎯 User Flow:

  1. First Visit β†’ Beautiful landing page with clear CTAs
  2. Sign Up/In β†’ Secure authentication system
  3. Dashboard β†’ Link creation and management interface
  4. Analytics β†’ Comprehensive tracking and insights
  5. Security β†’ DDoS protection and threat monitoring

πŸ“Š How It Works

🧠 Intelligent Behavior Classification

sequenceDiagram
    participant U as πŸ‘€ User
    participant S as πŸ”— Smart Link
    participant R as πŸŽ›οΈ Behavior Rules
    participant A as 🧠 AI Engine
    participant D as 🎯 Destination
    
    U->>S: Click Link
    S->>R: Get Custom Rules
    R->>A: Apply Thresholds
    A->>A: Analyze Behavior
    
    Note over A: Session History<br/>Custom Thresholds<br/>Time Windows
    
    A->>A: Classify User Intent
    
    alt Curious (First Visit)
        A->>D: Route to Primary URL
    else Interested (Custom Threshold)
        A->>D: Route to Returning URL
    else Highly Engaged (Custom Clicks)
        A->>D: Route to CTA URL
    end
    
    D->>U: Deliver Content
    S->>S: Update Analytics
Loading

πŸŽ›οΈ Custom Behavior Rules

Configure your own thresholds for visitor classification:

🎯 E-commerce Rule:
- Returning Window: 72 hours
- Interested: 3+ visits
- Engaged: 5+ clicks

πŸ“š Blog Rule:
- Returning Window: 24 hours  
- Interested: 2+ visits
- Engaged: 3+ clicks

🎨 Screenshots

🌐 Landing Page Experience

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 🌟 Smart Link Intelligence - Landing Page                  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                             β”‚
β”‚  🎨 Modern Gradient Header with Glass Morphism             β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚ Smart Link Intelligence    [Sign In] [Sign Up]         β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚                                                             β”‚
β”‚  πŸš€ Hero Section                                           β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚ Create, Manage & Optimize Smart Links with Ease        β”‚ β”‚
β”‚  β”‚                                                         β”‚ β”‚
β”‚  β”‚ A powerful, secure, and intelligent platform to        β”‚ β”‚
β”‚  β”‚ create behavior-aware links with advanced analytics,    β”‚ β”‚
β”‚  β”‚ DDoS protection, and AI-powered routing.               β”‚ β”‚
β”‚  β”‚                                                         β”‚ β”‚
β”‚  β”‚ [πŸš€ Sign Up]  [▢️ How It Works]                        β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚                                                             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ”§ API Reference

πŸ”— Link Management

Create Smart Link

POST /api/links
Content-Type: application/json

{
  "primary_url": "https://example.com",
  "returning_url": "https://example.com/returning",
  "cta_url": "https://example.com/signup",
  "behavior_rule": "progression",
  "behavior_rule_id": 123,
  "custom_code": "my-link"
}

πŸ”’ Security & Privacy

πŸ›‘οΈ Multi-Layer DDoS Protection

Smart Link Intelligence features enterprise-grade DDoS protection:

πŸ”„ Protection Workflow:

1. πŸ“Š Request Analysis
   β”œβ”€β”€ IP-based rate limiting
   β”œβ”€β”€ Burst detection
   └── Behavioral analysis

2. 🎯 Threat Classification
   β”œβ”€β”€ Level 1-2: Enhanced monitoring
   β”œβ”€β”€ Level 3: Captcha verification
   β”œβ”€β”€ Level 4: Temporary disable
   └── Level 5: Manual recovery required

3. πŸ›‘οΈ Automatic Response
   β”œβ”€β”€ Real-time blocking
   β”œβ”€β”€ Link protection activation
   └── Event logging & analytics

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸš€ Ready to make your links smarter?

🌐 Visit Landing Page β€’ 🎯 Sign Up β€’ πŸ” Sign In β€’ πŸ“Š Dashboard


Made with ❀️ by the Smart Link Intelligence Team

GitHub Stars GitHub Forks

Releases

Packages

Used by

Contributors

Languages