|
Online Subscribe to Feed Archives Feed ![]() Other ![]()
|
Mar 26, 2007, 12:40
[home/perl_scripts] The amount of spam hitting the various sites I design lately has been getting crazy. Some of my clients are getting dozens of ringtones, porn, and scam links posted to their comments boxes and guestbooks. So this morning I wrote a Captcha-style script, which I’ve called Cotcha. (Yeah, I know, really original — an acronym for Coded Objective to Tell Computers and Humans Apart). What makes this script so cool is that it can be integrated into any pre-existing form and/or perl script to add an extra element of spam protection. Right now the Cotcha code is only plain text— the next step of this script’s development is to create an image of the “Cotcha” code using ImageMagick. Since most web servers don’t come with this program preinstalled, I’m going to leave it off until it’s absolutely critical or someone makes a special request for the code to be imagefied. So if you’re having trouble with comment spam, feel free to get this script. I’ll be putting it up on Intelliscript.net soon. Watch for updates. ~Jason
I Wrote a Captcha Script
[technorati]
[permalink]
[feed]
Mar 17, 2007, 15:04
[home/perl_scripts/blog] I've finally done some major modifications on the blogpost script… LONG overdue. I cleaned up the code, helped it to handle memory a bit better, added some overwrite protection which should have been there all along, added more comments to the code, and put more explanation for the user as well. ~Jason Update: Today I completely rewrote much of the code as well— it was way too complicated. I hope people like the changes I've made. It should be easier to use and understand. Another update: Last night and this morning I rewrote some of the code again so that the script communicates with the web server and presents error messages, alerts, and confirmations without loading another page. Instead the alerts appear in an "iframe" and go away when the user resumes editing. I'm beginning to develop a new system to program Perl scripts which are more asynchronous… in other words, not only can the script communicate with the server, but hopefully the server can communicate with the browser independently. At the most simplistic level, error messages and alerts will appear from the web server without the user leaving the page. A real-world example of this style of web interface would be Gmail or Flickr. It's about time I started programming in this manner, considering how easy it is. Stay tuned!! And More: I finally replaced the HTMLAREA WYSIWYG interface, (which only worked on Windows using Internet Explorer) with a new WYSIWYG interface called TinyMCE. This HTML interface uses JavaScript and works on all platforms and many browsers including Opera, Firefox and IE. The HTMLAREA interface was very lite, didn't use much server space, and was super easy to configure. The TinyMCE interface is more complicated— but the cross platform benefits are obvious. Soon I will be replacing HTMLAREA in AutoFollowup and other scripts which require WYSIWYG.
Post Blog Script Modified
[technorati]
[permalink]
[feed]