Spamalot

Managing your own server is a pain in the arse at the best of times, namely because if it goes down or has security issues, there is nobody to blame or to find a resolution but yourself.

My hostees have been having a rough time for the past two or three months, the rack has been down more times than a cheap hooker.
I couldn’t work out what the issue was initially, just that for some reason, almost immediately after being booted up, the resources would slowly become more and more sparse which would inevitably result in the box falling over and the only thing that would revive it was a restart. 
After some investigation however, it came to light that it was a script that was doing the damage. Which script, you might ask?
Well, none other than wp-comments-post.php, the process that deals with WordPress comments. It was being hit thousands of times a minute and obviously, because I use a captcha (the little code thing that you have to type in before you can post a comment), all the requests were being denied, but, still serving up a hefty page of html on each failure.

Spambots are the bain of any hosts life, especially in the age that we live in now.
It used to be that inboxes just got clogged up with erectile disfunction emails, but it seems that spam filters and tired, vigilant recipients have made the mail spammers redundant, so they have gone out on a limb to carry on their work in new and inventive ways. 
For bloggers, that means comment spam and trackback spam. In the early days of blogging and the use of ‘CMS’ (Content Management Systems) this was not an issue. In fact, it only really started cropping up in 2004, and when it started, I wasn’t even too sure what was happening. But since then, a war has been declared on the blogging community by the spam peddlers.
If I didn’t have any spam protection, hintofsarcasm would easily receive over 1,000 spam comments per hour.
But just because they don’t get through doesn’t mean it won’t generate traffic.
Each time a spam comment or trackback is rejected by my website, it generates an error message, which under normal circumstances would be helpful as a human would be reading it and could correct their error. However, a bot just discards this information and thus it becomes a waste of precious bytes.

In these days of metered internet and high bandwidth costs, this can be a substantial hurdle to any blogger trying to prove their worth.
As soon as a blog becomes popular, the spambots will start to hit it, and depending on the size of the blog, they can hit hard. As previously mentioned, HoS gets hit thousands of times a minute and there is very little that I can do about this, short of banning entire continents from viewing the site. 
I have put in place a temporary workaround, changing the name of the script that handles wordpress comments, as many bots use cached information of what url to hit and then setting the old wp-comments-post.php to redirect instantly to a non-existant website (something like goawayspammingscum.com). This still generates traffic, but gladly, only a few bytes, compared to the kilobytes it was using before.
It won’t be long however before the bots re-train and pick up the new script and I have to change the name again. It’s an endless circle.

But, what can you do? Answers on a postcard..

You can tell it’s a heatwave when…

1 Hitherto unsuspected tattoos are on display, often requiring wholesale mental readjustment in social perceptions. It is frequently these, rather than the heat, that are making you dizzy.

2 You are unable to face drinking tea or coffee and spend much of your day trying to work out how to caffeinate the water cooler.

3 If you live in the city, the air is visible and has to be cut into manageable chunks before it can be inhaled. If you live in the country, your smug air is visible and you are in danger of being cut into manageable chunks by desperate urban refugees.

4 You come to believe that deodorant is God’s own stickful of petrochemical derivatives.

5 The cat is scratching the words “Shave me, shave me� on every available surface. The dog is writing letters of complaint to the design committee that dictated that panting rather than, say, unzippable pelts should be the main method of canine temperature regulation.

6 Sex seems like the worst idea anyone has ever had, ever.

7 A visit to the shops makes you deeply aware of how very far we still are as a nation from embracing the pedicure as a standard component of personal grooming.

8 The bikini is suddenly acceptable office lunch-hour wear, though disconcerting when still worn with tights in order to faciliate the quick change back at two o’clock.

9 Entering the sauna/going on the sunbed gives you goosepimples.

10 The human body finds new and interesting ways to let you down, notably in the way of inner-thigh chafing among women and scrotal sweating among all the others.

11 People rush to book holidays somewhere even hotter.

12 Foreigners walk around in thick coats and long trousers insisting that if this happened at home they would still be huddling round log fires.

13 You suddenly have veins like jungle vines and, if you listen very closely, can hear blood vessels popping under the most minimal physical exertion.

14 You sleep naked and spreadeagled, like a pornographic starfish.

15 You elbow old ladies in the face to get the last electric fan in Comet.

http://www.guardian.co.uk/Columnists/Column/0,,1812093,00.html