A free component to create Excel files on the fly
Techniques
This section makes it possible to gather a whole of techniques or scripts which have the originality to manage to solve a difficulty with the least effort or which are particularly effective...The grayed entries relate to the future headings which will supplement soon this toolbox.
Techniques / Composants Security : DypsAntiSpam

Please visit also our sponsor
- How to prevent automatic submission with DypsAntiSpam :
<See object reference for DypsAntiSpam>
Previous Page
This short example will help you to to prevent automatic submission with DypsAntiSpam.
This example is based on two ASP page :
- the first one containing a form and an input where the user can write the code displayed by DypsAntiSpam,
- the second one will generate the image CAPTCHA and store the random string the user must provide to access to a protected web page or submit is data to your forum...
'This first page will display a form <html> <body> <% if request.Form("code") <> "" Then response.write "Data stored in your session object : <b>"&_ session("p") & "</b><br>" response.write "And here what you get from the form : <b>"&_ request.Form("code") & "</b><br>" end if if session("p") = request.Form("code") _ and len(session("p"))>0 then response.redirect "restricted_place.asp" end if %> <br> Type the code you see in the picture behind. <form method="POST"> <img src='antispam.asp' > <input name='code' width='145' height='20'> <input type='submit'> </form> </body> </html>
As you have notice the first page will include an IMG tag and the source file is "antispam.asp". This file will generate the image to display. Here is its content :
<% 'Create the Challenger object set antisp = server.createObject("DypsAntiSpam.challenger") 'Create random string and store it 'in a sessions variable session("p") = antisp.getRandomString 'Generate image ! antisp.genImage 'That's it! set antisp = nothing %>
<See object reference for DypsAntiSpam>
Previous Page
You could now ask for support by using the forum.