Skip to content

Marcucus0/LinkSentry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LinkSentry 🔗🛡️

Version 🔒 Protect your users from unsafe redirects

📌 Overview

LinkSentry is a lightweight and secure plugin that protects users from uncontrolled external redirects. It intercepts outbound links and displays a warning page before leaving your site, preventing phishing attacks and malicious redirections.

Smart link filtering (customizable whitelist)
Protection against phishing and forced redirects
Customizable countdown before redirection

🚀 Installation

📂 Clone the project

git clone https://github.com/Marcucus0/LinkSentry.git

1️⃣ Add LinkSentry to your project

Include this script in your HTML (before </body>) :

<script src="linksentry.js"></script>

2️⃣ Configuration (optional)

In your HTML file, set your preferences:

<script>
    window.RedirectorConfig = {
        whitelist: ["twitter.com", "github.com"], // Allowed domains
        countdown: 5, // Time before redirection (0 = disabled)
    };
</script>

The countdown has a minimum duration of 5 seconds. If a lower value is set, it will be disabled

🎯 How does it work?

1️⃣ A user clicks on an external link 🚀
2️⃣ LinkSentry checks if the link is allowed (whitelist) ✅
3️⃣ If the link is unknown, a warning page is displayed ⚠️
4️⃣ The user can confirm or cancel the redirection ✋
5️⃣ If countdown is enabled, redirection happens automatically after X seconds ⏳

Capture d'écran 2025-03-04 020610

About

Protect your users from unsafe redirects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors