The Digg effect and what I could have done

November 18th, 2008

Yesterday I received a lot of traffic, and a lot it is still quite of an understatement. When I realised where all this traffic was coming from it was already to late and only a bunch of cached pages withstood the enormous flow of visitors — at least for a while. I felt victim to the digg effect and sixteen thousand hits later I knew what I could have done to keep my blog alive.

In the evening my shared host provider sent me an email in which he explained that they though there was an DoS attack directed at my page and that they had to move me on an isolated server, after a quick email discussion and me telling them that it was in fact the digg front page what caused DoS like traffic they put me back on line.

There are few things I could have done to prevent the site from going down, the best probably being getting a root or managed server instead of an shared host but that’s not a quick solution and as I think this is probably an isolated case not really necessary. Now the support team of my hosting provider gave me this great tip on how to get rid of all that incoming digg traffic which was taking down my site with some short two lined addition to my .htaccess-file.

RewriteCond %{HTTP_REFERER} ^http://(.+\.)?digg\.com/ [NC]
RewriteRule .* - [F]

These to lines will drop incoming traffic from digg and show them a forbidden instead of forwarding them to my index.php where a lot of load is produced executing or accessing php files. Some people will assume the site remained done, some will be just confused why they’re forbidden to access the site, as I know digg some will shout censorship, and those who know what happened will just enter the URL in their address bar and access it this way as only traffic from digg is blocked. Anyway, I thought there is maybe a more elegant way, which I didn’t use because I did not know what Wikipedia’s policy would say about this and to be honest I’m just too lazy to dig it up. It is possible to to redirect incoming traffic from a specific source, in this case digg to a completely different URL and one that would suit quite well is the Wikipedia entry about the digg/slashdott/etc. effect.

RewriteCond %{HTTP_REFERER} ^http://(.+\.)?digg\.com/ [NC]
RewriteRule .* http://en.wikipedia.org/wiki/Digg_effect$1 [r=301,nc]

Well those two are what I could have done, but when I noticed what was happening most of the traffic has already had happened and at this point there was nothing I could do.

I think I was quite lucky that I installed the wp super cache add-on for Wordpress which cached pages, making static URL files being served instead of executing the PHP files every single time which reduced the load at least to some extend but it clearly wasn’t enough and the server struggled every time a new page has to be cached.

Is there anything else more I could have done? I love the idea of a Wordpress plug-in that puts those lines in my .htaccess every time a set number of visitors from digg or other social media sites tried to access the page, I don’t even know if this kind of automation is even possible though.

Popularity: 40% [?]

www ,

Wikipedia.de forward suspended in Germany

November 16th, 2008

A German Politician obtained a preliminary injunction against the Wikimedia E.V. owning the German top-level domain for wikipedia and resulted in the forward to de.wikipedia.org to be suspended. Germans blinded by current antileft sentiments in the media fail to see the real problem here at hand, German law. Read more…

Popularity: 40% [?]

www ,

Clever idea, Youtube in “Super HD”

November 14th, 2008

We all know Youtube made some progress in terms of quality of their videos, they still pretty much blow compared to every other video site out their and I doubt they’ll change a thing as their lead in the market isn’t in really in danger. This apparently wasn’t enough for blogger Mr.doob and he put up a video on his site powered by youtube with four times the resolution of an ordinary one. Read more…

Popularity: 15% [?]

www

Get your GMails into your feed reader

November 14th, 2008

Long time has passed since my last GMail tip about cleaning up your inbox, this time It’s all about feeds. I was really surprised to find out that there are people who didn’t know that GMail offers a variety of atom feeds for you to subscribe, so you don’t have to bother with newsletters in you inbox and can put and read them where they belong, in your feed reader. Read more…

Popularity: 17% [?]

www

Greyscale picture with coloured highlight

November 11th, 2008

Have you ever wondered how those pictures are made where everything is grey but a pair of bight red lips? Let me show you how it’s done, I’m using a picture of a blossom to lead you to the process and you will be surprised how fast and easy you can make your pictures. Read more…

Popularity: 33% [?]

Gimp Tutorials, Ubuntu ,

Three reasons why Windows 7 won’t kill Linux

November 9th, 2008

Windows 7, Microsoft’s new Operating system is on it’s way to be released mid 2009 and because of its, in comparison to prior abominations from Redmod more modular structure, lighter appearance and promotion of Netbook usage some have already announced the death of the Linux world. Here are five reasons why this won’t be the case and why you should not erase Linux from your hard drive as soon as Windows 7 hits the shelves. Read more…

Popularity: 21% [?]

IT, Ubuntu , ,