The jewel in the crown of Samizdata.net
A blog for people with a critically rational individualist perspective. We are developing the social individualist meta-context for the future. From the very serious to the extremely frivolous... lets see what is on the mind of the Samizdata people.

Samizdata, derived from Samizdat /n. a system of clandestine publication of banned literature in the USSR
[Russ.,= self-publishing house]
There is much to find for those who look
We are not alone
Made possible by...
 
October 23, 2003
Thursday
 
 
Administrivia
Dale Amon (Belfast, Northern Ireland)  Administrative

I am about to install some bot-killing software, so if comments happen to break for awhile or the site rolls over with its itty bitty paws flailing in the air, you will know why...

Update: Samizdata.net comments will now require you to enter a security code that you copy off a graphic that will appear in the comment pop-up window. This should prevent spam-bots from auto-posting their garbage all over the blog.

Also, we have updated some code to stop spammers harvesting the e-mail addresses of commenters as well.


Comments

Take that evil spambots!


Posted by Dale Amon at October 23, 2003 02:45 PM

Nice one Dale!


Posted by Perry de Havilland at October 23, 2003 02:49 PM

Oh, no, I can no longer post anything. I will have to keep my woeful ignorance to myself. What is that strange 'number on a grid'? Surely not identity cards for text?


Posted by zack mollusc at October 23, 2003 02:53 PM

Hey now this is a nice solution! Is this available, or is it a 'Samizdata Solution?'


Posted by Scott Wickstein at October 23, 2003 03:54 PM

I can only take the credit for installing it. The author has it available here:

http://james.seng.cc/archives/000145.html
http://james.seng.cc/scode-0.1a.tar.gz

It's not a trivial installation. You'd better know Perl because you've got to edit a couple MT files from the Unix command line.


Posted by Dale Amon at October 23, 2003 04:01 PM

You don't have to edit them from the command line, Dale just does it because he's ornery.


Posted by Sekimori at October 23, 2003 04:05 PM

Nope, you have to edit Comments.pm from the MT source, and customize Scode.pm from the plugin source. And you might have to create some directories and such as well.


Posted by Dale Amon at October 23, 2003 04:10 PM

*sigh*


Posted by Sekimori at October 23, 2003 04:16 PM

From the command line? Hm, "nedit" or even "gvim" is your friend.

Can you make it so the number doesn't change (or is no longer needed for that specific comment) after a successful preview? If they already got the number right previewing, they aren't going to suddenly turn into a spambot when pressing "post". Preview is good and having to squint at and type a number twice will discourage its use.


Posted by Julian Morrison at October 23, 2003 04:44 PM

Good idea, but probably not. I'd have to spend a day to figure out the guy's code and make sure I got the number passed along properly through the session but no further. It could get messy because http is stateless; any appearances to the contrary are done with messy hacks which have been known to get confused.
(Yes, I've even seen the noble php get lost in state-space)

It would probably be trivial for the original author though since he's already worked through the thought process. You might follow the link and suggest it.


Posted by Dale Amon at October 23, 2003 05:10 PM

Hmm. It should be simple enough.

- On a successful preview, add "user has authenticated" to the PHP session

- On a successful post, remove it.

- On generating the page, if their session is authenticated, put the number in a hidden field instead of including a text box. The antispam checking code has no way to distinguish between a filled-in text box and a hidden field, so it need not be altered.

Testing would be simple: test if it gets set, test if it gets properly unset, test if it works a second time around. Voila.


Posted by Julian Morrison at October 23, 2003 05:31 PM

Bit of a bugger for anyone visually impaired.

I used to communicate a lot on the net with a guy that used a braille reader.

Stuff like this might be an acceptable as a short term solution, but longer term MT sites need a better solution.


Posted by Tim Hall at October 23, 2003 06:15 PM

Hmm, Turing numbers. Me likey. I wrote one in PHP a while back. If you had the GD library linked in then it was easy to generate the numbers on the fly.

As for the authentication tracking etc, I just postponed entering the number until I was ready to post. Preview doesn't need it.


Posted by David Gillies at October 23, 2003 06:22 PM

I have a better idea for the avoidance of e-mail address harvesting: never use your REAL e-mail address when posting or providing details to access a site! It's surprising how many people still give their real details in web forms.


Posted by Steven Chapman at October 23, 2003 08:10 PM

I keep a throwaway webmail address purely for web forms on sites I don't really trust not to spam me.


Posted by Tim Hall at October 23, 2003 08:50 PM

Ah, well. A minor inconvenience that will be a major hassle to the tossers, er, DoSsers plaguing the site.


Posted by Chris Tucker at October 24, 2003 01:19 AM

I like it, and it seems to have worked for me.


Posted by Dishman at October 24, 2003 02:05 AM

Does this mean no more Kodiak...?


Posted by Alan at October 24, 2003 01:20 PM

Hah! You silly Bushist unilateralist person you! I fart in your general direction! Vive La France! The French state is the mother of all wondefulness! Unilateral French military action in Africa is in fact multilateralist because, well, I say so and so does Sartre and Derida and Johnny Haliday! etc. etc. etc. etc. etc. etc. etc. etc.

Ribbit.

Ribbit.

Ribbit.


Posted by Kodiak at October 24, 2003 05:46 PM

* amon breaks into fits of giggles and gets carted away

Someday we'll have a knock down, drag out verbal battle over some fine bottles of vino somewhere in Paris with "Dissident" as my second. You know, wine bottles at 10 paces. Ready, aim, drink!


Posted by Dale Amon at October 24, 2003 06:07 PM

test


Posted by Dave at October 24, 2003 08:28 PM

How long I wonder until a spammer gets some geek for pay to whip up a widget that can OCR those turing numbers. The background grid is consistent, and the fonts don't look randomly distorted.

But for now it's a great hack!


Posted by David Mercer at October 24, 2003 09:10 PM

I wrote a small (500 line) C++ hack that can take one of these PNG's and return the number. The problem is, as David Mercer says, that the fonts are too regular. Even if they were shifted up and down and shrunk or expanded, some relatively simple image processing should be able to decode them.

The thing with these sort of systems is that they are meant to make it too hard for the spammer to bother with your site. It doesn't make your site impregnable, it just raises the bar a bit so the spammer will go looking for softer targets.


Posted by David Gillies at October 26, 2003 05:20 AM

All true. It's an arms race and there is little value in 'spending' more at a given time that the threat requires. It's the money value of my time ;-)


Posted by Dale Amon at October 26, 2003 08:55 AM

Is there some sort of time-out function at play here? I enter the secret number, and then go on to enter my post. But that may take me serval minutes, or even hours, if I leave it for some reason.

In any event, I've made a habit of checking to see that I've entered the number before hitting the post button, but still frequently get n error. I can't be keying in the wrong number that frequently - what's up?


Posted by Kevin L. Connors at October 27, 2003 10:16 AM

Ok I'm having hassles with the installation. It's not trivial, everything works except for the fact that the image with the number doesn't actually appear.

So as a result on my personal blog it has, in effect, disabled comments.

I've emailed James to try and find out what I might have done wrong.


Posted by Scott Wickstein at October 27, 2003 02:57 PM

"It's not trivial,"

Don't say I didn't warn you :-)

It's really not that bad though. It just requires a bit of fairly straightforward hacking. It's just a matter of getting it right..."the devil is in the details" as the saying goes.

We got bit by a problem in the White Rose blog because I can't rewrite templates from the CGI front end unless they are less than 950 chars long... An entirely seperate network problem which seems unique to me and smells like an MTU...


Posted by Dale Amon at October 27, 2003 03:17 PM

shall therefore compose basic html with their bare hands?


Posted by oscommerce at September 6, 2005 02:10 PM
Post a comment









Remember personal info?


Enter anti-spambot Turing code:





Select some text and click this to format it as a quote Make the selected text bold Make the selected text italic Add a web link


Basic html active.

Alas, but for obscure reasons Mozilla, Mac and Linux users shall not harness to power of the push-button formatting options and shall therefore compose basic html with their bare hands. Yet Mozilla, Mac and Linux users shall not fear, for we shall reveal forthwith the mysteries of Basic Html:

<strong>This text in-between is bold</strong>

<em>This text is in italics</em>

And
<blockquote>This is a quote</blockquote>
Remember to close your opened tags as such: <tag> tagged text and closing </tag> and we promise you will get out of here alive.

For adding links, either use the link URL button on the toolbar or enter your code by hand in the following format:
<a href="http://www.your_link.com">your link text or description here</a>

Movable Type's anti-spambot e-mail address protection is enabled.

You are a guest on private property. Have fun but please be civil and succinct. Blogroaches will be persecuted, not to mention IP banned.

Long third party quotes or articles will also be deleted... so just link to articles you think are germane to your comment, don't quote the whole bloody thing.