Wayback Machine Plugin for ALL old/dead outbound links on a website?
March 6, 2009 1:19 AM
Subscribe
My old website still gets a lot of hits. But many of the outbound links I posted years back are no longer valid, are dead or have changed location. Is there any way to integrate the
Wayback Machine Internet Archive into my site's code so that links are redirected to the archive for the date they were originally posted?
Ideally I would like an integrated plugin that directed old outbound links to their archived page on Wayback automatically. It would be great if visitors to the site hardly even knew their click had been redirected. I would like to implement it site-wide, so that either:
1. All outbound links were directed to the original date they were posted, or
2. If links are dead then the plugin kicks in and directs to the wayback archive, or
3. The plugin places a Wayback version of each link next to the original (something like:
Original Link [
archive])
(My site is a self-hosted blogger blog - the old version - if that makes a difference...)
Is there a way?
posted by bollockovnikov to computers & internet (4 comments total)
3 users marked this as a favorite
It's pretty easy to do this in javascript by adding a function to the base template that adds an archive URL with the year/month (which is all the wayback machine requires IIRC) derived from the post date to the beginning of each link within a typical post div.
I just knocked out some code to do it in a current blogger template as a proof of concept, but I don't know how Old Version formatting or templating is different. Obviously, it won't work if javascript is turned off.
MeFiMail me a link to your blog so I can have a look if you think this solution might work for you.
posted by Sparx at 3:44 AM on March 6, 2009 [1 favorite]