auto Safelink — updated!.

Gerald Situmorang in
updated on:

This version comes with a ton of updates — and when I say a ton, I really mean it. The entire code has been completely rewritten and organized to make it easier to tweak and customize. Now you can quickly spot which parts you need to adjust. Here are some of the other cool new features:

  • Site list separated from the main JavaScript – Previously, you had to manually write out which sites to exclude. Now it’s the other way around: you decide which sites should bypass SafeLink, so not every outbound link is affected.
  • Randomized SafeLink pages – You can now set up multiple SafeLink pages (not just one). Whenever a page has external links, each link can point to a different SafeLink page, chosen at random.
  • Shorter URLs – Before, you’d see long SafeLink URLs like:
    ...com/p/safelink.html?url=xxxxxxxxxxx
    That ?url=xxxxxxxxxxx parameter is the encrypted original URL. Since those got way too long, I’ve switched to storing them in the browser’s sessionStorage.
  • Easier countdown control – You can now set how long the wait time is before redirecting to the original URL.
  • Redirect options – You get to choose whether the redirect goes straight to the original URL after the countdown ends, or if it should show a button instead. This gives you flexibility: you can prioritize user convenience with auto-redirect, or add an extra step for more user interaction. It’s entirely up to you.

Of course, even with all these features, there’s still a limitation: the original URL is still on the page. What the JavaScript does is just DOM manipulation — it doesn’t actually remove the original URL. If someone presses Ctrl + U (to view the page source), they’ll still see it. That also means search engine bots can still index the original link.

The only real solution for this is manual encoding — basically, you’d need an encoder to encrypt the original URL and turn it into random characters. Unfortunately, I haven’t written a guide for that (at least not at the time of this post).

But overall, this upgraded version answers pretty much all the questions you’ve asked.

Go ahead and click the link below to try the plugin out for yourself.

congratulations
Download

The link above is just a demo for testing in a real-world case — you won’t be downloading anything.