Archive

Archive for July 19th, 2008

ColdFusion Alternative to Captcha?

July 19th, 2008

I just watched a video from UGTV on Charlie Arehart’s website done by Jacob Munson.  Near the end of the presentation Jacob was talking about how he changed his form names and it broke the spam bots that were hitting his site.  He also talked about the concept of using a special key loaded into the session that could be used to check if the person was real or not.  The consensus was that manual spammers sucked and you have to use something like Project Honey Pot to try and stop the manual spammers.  Well, I agreed with Jacob and the others in the audience, that you have to employ a few different methods to feel even a little safe, but I liked the form name change and session key, so I put together a simple proof of concept.  I am still trying to figure out how this method wouldn’t work for bots, so if you know of something let me know.

I started out by setting the appkey and then using it to encrypt the form:

<form action="processForm.cfm" method="post">
 
        <input name="#cfusion_encrypt('firstname',session.appkey)#" type="text" >
 
        <input name="#cfusion_encrypt('lastname',session.appkey)#" type="text" >
 
    <input type="submit" value="go" >
</form>

Then, I run through the form and convert out the keys to usable strings, you simply use the new form instead of the form scope.

<cfset newFrm = StructNew()>
<cfloop collection="#FORM#" item="g">
	<cfset clearFormName = cfusion_decrypt(g, session.appkey)>
    <cfset structInsert(newFrm,variables.clearFormName,FORM[g],'true')>
</cfloop>

I figure if the bot is going to be looking through form definitions, then the constantly changing key will mess that up.  I think it would be best if you used a really good key for the encryption and then used a different encryption method than the cfusion_encrypt.  I just used that for a test.  Any thoughts?

Lu Sancea Coldfusion ,

Facebook does what we do best!

July 19th, 2008

Only the finest in litigation!  Facebook, the social networking site that boasts 80 million users, has launched a lawsuit that has me chuckling.  Facebook just settled it’s own lawsuit with ConnectU which stated that the founder of Facebook stole their idea.  The part that is amusing about the lawsuit is that they are going after the German website for more than just the design of the site.  They are claiming that the features, look and feel, and services have been stolen.  I feel really bad for any social networking site that has a job board, profile, last activity list, groups, email notifications, an API, etc.  I also feel bad for all other companies who do anything that a larger company does because you could be sued for providing the same “services”.  Of course I am being a little facetious here, but it is pretty lame to sue over features and services that have been around for a while before you came on the scene.  Now, they sure did rip the ever living crap out of the layout and design…compare for yourself.

Facebook: Facebook

German Company: StudiVZ

Chinese version: Xiaonei

Lu Sancea Misc ,