Defeating the DiggBar…Posted on April 11th, 2009 No comments
I ran into this little snippet at Daring Fireball:
Last week Digg released something they call the DiggBar, which serves as both a new interface for Digg and doubles as a URL shortening service. The way it works is that you just add “digg.com/” at the beginning of any URL, and Digg creates a short URL in the form of digg.com/1234. Here’s an example DiggBar URL that points to google.com: http://digg.com/d1nYVs. Further, the Digg homepage now links to these DiggBar URLs rather than linking directly to other web sites.
But unlike normal URL shortening services, when you load these Digg URLs, rather than redirect you to the original URL, Digg loads a page which frames the content of the original site. As a user, what you see is that the URL in your browser’s location field remains digg.com/1234, and the content of the destination site loads underneath a Digg-branded toolbar.
Obviously, this is a problem.
I’ve gone ahead and implemented Daring Fireball’s 3 lines of PHP code on my site here. You can see my results: http://digg.com/u1j0Z
Leave a reply