This is a simple URL shortener web application that allows users to create shortened URLs, which can then be used to redirect to the original URL. In addition to the basic functionality of a URL shortener, this application also includes features such as location detection, expiry date for links, user management, and a statistics page with a powerful data table.
Redirect url Example : http://naserelz010-001-site1.ftempurl.com/r/zjOgKU9
- Log in
- Register
- Log out
- Email Confirmation
- Two Factor Authentication
- Remember Me .option
- and many more
- Allows users to create shortened URLs for any website
- Shortened URLs can be used to redirect to the original URL
- Powerful Redirect Logic before Redirecting
- Detects the location of the user accessing the shortened URL
- Displays the country of the user on the statistics page
- Example : "{"status":"success","continent":"Asia","continentCode":"AS","country":"Israel","countryCode":"IL","region":"M","regionName":"Central District","city":"Raanana","district":"","zip":"","lat":32.1865,"lon":34.8726,"timezone":"Asia/Jerusalem","offset":10800,"currency":"ILS","isp":"XFone 018 Ltd","org":"XFone 018 Ltd","as":"AS47956 XFone 018 Ltd","asname":"XFONE","reverse":"","mobile":false,"proxy":false,"hosting":false,"query":"141.226.27.42"}"
- Allows users to set an expiry date for the shortened URL
- Shortened URLs will no longer redirect after the expiry date has passed
- Mange Personal detals
- Provides a dashboard for logged-in users to manage their shortened URLs
- Provides a comprehensive view of all shortened URLs
- Includes data such as total clicks, unique clicks, and country of the user
- Provides a powerful data table with features such as search, search highlight, pagination, view records per page, remote refresh, refresh data, link details view, full screen, and more.
- Indicate if Url has been expired
- a Line Chart to view Links Locations with Counter
- C#
- ASP.NET Core
- Entity Framework Core
- MSSQL
- HTML/CSS
- Bootstrap
- jQuery
- Chart.js
- Visual Studio 2019 or later
- .NET Core SDK 3.1 or later
- MySQL Server 8.0 or later
- MySQL Workbench or any other MySQL client
- Clone the repository to your local machine
- Open the solution file
UrlShortener.sln
in Visual Studio - Open the
appsettings.json
file and set theConnectionStrings:DefaultConnection
value to your MySQL connection string - Open the Package Manager Console and run
Update-Database
to apply the database migrations - Build and run the application
- Access the application using the URL
http://localhost:5000
- Sign up for an account or log in with an existing account
- Shorten a URL using the "Shorten URL" button
- Use the shortened URL to redirect to the original URL
- View statistics for all shortened URLs on the "Statistics" page
This project is licensed under the MIT License