Visualizzazione dei risultati da 1 a 5 su 5

Discussione: captcha

  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2005
    Messaggi
    2,630

    captcha

    Cercavo nel form info su un captcha per asp e tutti mi riportano a wbsecurity di imente, solo che ai link indicati c'è solo una pagina in costruzione del sito imente, c'è qualche link alternativo o uno script simile che potete consigliarmi?
    Grazie
    G.

  2. #2

  3. #3
    Utente di HTML.it
    Registrato dal
    Dec 2000
    residenza
    Savona
    Messaggi
    897
    Eccoti un esempio funzionante: Questa la pagina HTML:
    <html>
    <head>
    <title>form contatti</title>

    </head>

    <body>


    <form action="controllo_Captcha.asp" method="post">


    <table width="380" cellspacing="0" cellpadding="0" border="1">


    <tr>
    <td width="80" align="left" style="padding-left:20px;" class="testo3"><font class="testored">*</font> Referente</td>
    <td width="280" align="left" style="padding:5px;" class="testob">
    <input type="text" name="nome" value="" onfocus='startHelp=0; this.value=""' maxlength="21" class="input_form" style="width:100%;" />
    </td>
    </tr>
    <tr>
    <td width="80" align="left" style="padding-left:20px;" class="testo3"><font class="testored">*</font> Email</td>
    <td width="280" align="left" style="padding:5px;" class="testob">
    <input type="text" name="Email" value="" onfocus='startHelp=0; this.value=""' maxlength="35" class="input_form" style="width:100%;" />
    </td>
    </tr>
    <tr>
    <td colspan="2">
    <table cellspacing="0" cellpadding="0" border="0">
    <tr>
    <td width="140" align="left" style="padding-left:20px; padding-top:10px" class="testo3" valign="top">


    [img]captcha.asp[/img]</td>
    <td width="220" align="left" class="testob" valign="bottom">



    <input name="strCAPTCHA" type="text" size="10" id="strCAPTCHA" /></td>
    </tr></table>
    </td>
    </tr>
    <tr><td colspan="2" style="padding-left:20px;"><font class="testored">*</font>
    <font class="link_home">Inserisci il codice visualizzato (Sistema antispam)</font></td></tr>
    <tr><td colspan="2" height="6" align="right"></td></tr>
    <tr><td colspan="2" height="30" style="padding:5px;" align="right">

    <input type="reset" value="reset" onfocus="this.blur()" />
    <input type="submit" value="INVIA" onfocus="this.blur()" />
    </td></tr>
    </table>
    </form>
    </body>
    </html>


    .................................................
    QUESTA INVECE E' LA PAGINA CHE RICEVE IL FORM:

    <%Language = "VBScript"%>



    <%
    Function CheckCAPTCHA(valCAPTCHA)
    SessionCAPTCHA = Trim(Session("CAPTCHA"))
    if Len(SessionCAPTCHA) < 1 then
    CheckCAPTCHA = False
    exit function
    end if
    if LCase(CStr(SessionCAPTCHA)) = LCase(CStr(valCAPTCHA)) then
    CheckCAPTCHA = True
    else
    CheckCAPTCHA = False
    end if
    End Function
    %>
    <%
    strCAPTCHA = Trim(Request.Form("strCAPTCHA"))
    if CheckCAPTCHA(strCAPTCHA) = true then
    ' go ahead, it's a human
    else
    ' spam avoided"
    end if
    %>
    <%

    if CheckCAPTCHA(strCAPTCHA) = true then
    // INVIO IL FORM A DESTINAZIONE
    else %>
    <%Response.Redirect ("fORM_cAPTCHA_ESEMPIO.asp")
    end if %>

    .................................................. ......................

    il file CAPTCHA.ASP, che non devi modificare, te l'ho pubblicato qui, perchè era troppo lungo..
    http://www.fazzarimarmi.com/asp_captcha.zip


    Se servono chiarimenti, scrivi...
    Ciao

  4. #4
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,783
    Originariamente inviato da dover
    il file CAPTCHA.ASP... te l'ho pubblicato qui
    visto che fai riferimento ad un prodotto terzo perché non citare il produttore?

  5. #5
    Utente di HTML.it
    Registrato dal
    Dec 2000
    residenza
    Savona
    Messaggi
    897
    Pensavo fosse scontato, visto che non ho cancellato alcun riferimento all'autore del file captcha, che ringrazio e cito:

    Emir Tüzül: http://www.tipstricks.org



Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.