Re: WebDNA CAPTCHA
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 69767
interpreted = N
texte = Nice !!RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.auOn 07/02/2008, at 1:33 AM, Phil Ronchetti wrote:> I put together a captcha that uses WebDNA and Imagemagick.>> (1) Use WebDNA to generate a random string like so:>> [text> ]Pattern> =1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ[/text]>> [text]RandomString=[/text]>> [loop start=1&end=5&advance=1]> [text]nextchar=[math]ceil([RANDOM format=float]*62)[/math]=[/text]> [text]RandomString=[RandomString][GetChars > start=[nextchar]&end=[nextchar]][Pattern][/GetChars][/text]> [/loop]>> (2) Write the solution [RandomString] to a file.>> (3) use Imagemagick to put our [RandomString] onto a background > image (background.gif) that we have already set up for this purpose > like so:>> [shell]/usr/local/bin/convert -size 180x65 xc:white -tile captcha/ > background.gif -draw "color 0,0 reset" -draw "font '/Library/Fonts/ > Verdana' font-size 42 fill white stroke black stroke-width 2 > translate 10,45 text 0,0 '[RandomString]'" 'captcha/text.png'[/shell]>> (4) Insert your image "captcha/text.png" into your form.>> (5) When the user submits their form compare their answer to the > solution you saved in the text file in step 2.>> (6) Drink champagne :-)>> Phil Ronchetti>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to >> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Nice !!RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.auOn 07/02/2008, at 1:33 AM, Phil Ronchetti wrote:> I put together a captcha that uses WebDNA and Imagemagick.>> (1) Use WebDNA to generate a random string like so:>> [text> ]Pattern> =1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ[/text]>> [text]RandomString=[/text]>> [loop start=1&end=5&advance=1]> [text]nextchar=[math]ceil([RANDOM format=float]*62)[/math]=[/text]> [text]RandomString=[RandomString][GetChars > start=[nextchar]&end=[nextchar]][Pattern][/GetChars][/text]> [/loop]>> (2) Write the solution [RandomString] to a file.>> (3) use Imagemagick to put our [RandomString] onto a background > image (background.gif) that we have already set up for this purpose > like so:>> [shell]/usr/local/bin/convert -size 180x65 xc:white -tile captcha/ > background.gif -draw "color 0,0 reset" -draw "font '/Library/Fonts/ > Verdana' font-size 42 fill white stroke black stroke-width 2 > translate 10,45 text 0,0 '[RandomString]'" 'captcha/text.png'[/shell]>> (4) Insert your image "captcha/text.png" into your form.>> (5) When the user submits their form compare their answer to the > solution you saved in the text file in step 2.>> (6) Drink champagne :-)>> Phil Ronchetti>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to >> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Stuart Tremain
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
WebCatalog2 Feature Feedback (1996)
[WebDNA] Feature Request [TABLE ... &delimiters=] (2008)
WebCommerce: Folder organization ? (1997)
WebCatalog for Dummies part 2 (2000)
Cart doesn't interpret tag! (1997)
SiteEdit NewFile.html ? (1997)
customers getting same cart (2004)
WebDNA Solutions ... sorry! (1997)
WebCatalog can't find database (1997)
Multiple Users.db Possible? (1997)
Re2: frames & carts (1997)
Multi-processor Mac info ... (1997)
[Semi-OT] Eaaaaaasy OSX FTP (2003)
find with exceptions (1997)
Authorizenet SIM (2002)
Multiple Pulldowns (1997)
WebCatalog Mac and cgi-bin (WebSTAR 2.0) (1997)
Experience with creating real dynamic solutions?????? (1998)
Download URL & access on the fly ? (1997)
RE: [sendmail]- bcc? (1998)