🔒 Protect your users from unsafe redirects
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
git clone https://github.com/Marcucus0/LinkSentry.gitInclude this script in your HTML (before </body>) :
<script src="linksentry.js"></script>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
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 ⏳
