I felt old when I was chatting to a colleague who is slightly younger than myself about the frames issues, "wow, thats come around again, I remember the first time ..." and how webmasters had "frame busting" code in their sites, (long ago directories and some search engines would frame outbound links) "for the users of course". It seems that anyone a bit younger than myself don't remember when frames were popular... In fact a lot of Web 1.0 (or probably web 0.9) seem to be lost on the "younger generation" and for the first time I am starting to feel like a web 'veteran'.
Anyhow, back on point - In the end webmasters and web users generally tended to agree that framing outbound links was not the done thing and the practice was pretty much unanimously dropped, there were issues with usability and accessibility, plus generally people didn't like the fact that their well-designed site was being invaded and that valuable screen real estate was stolen.
There are many good reasons for using frames, but framing other people's content was considered a bad thing 10 years ago and I don't know why Digg people think things have changed today. Of course most of the Digg population are too young to recall this...
Engadget knows the answer; they have restored their frame busting script - and you can too by putting this in your page.
<script type="text/javascript">
if (top !== self && document.referrer.match(/digg\.com\/\w{1,8}/)) {
top.location.replace(self.location.href);
}
</script>
Although if you're not using frames you can probably modify it to anyone, not just Digg!
<script type="text/javascript">if (top !== self )
top.location.replace(self.location.href);}</script>
I think this is right... I am not one for writing JavaScript that actually works!
Gerry
2 comments:
It seems they have listened to the community and unless your logged in - you won't see the notorious frame (Digg bar) ...
http://blog.wired.com/business/2009/04/diggbar.html
And it is (almost) gone!
Live from twitter ...
"kevinrosediggbar changes are now live, this should redirect (no bar) if you aren't logged in: http://digg.com/d1pIpX"
Post a Comment