Click here to Skip to main content
15,881,938 members
Articles / Web Development / ASP.NET

The Image-Based CAPTCHA: Part 2

Rate me:
Please Sign up or sign in to vote.
3.20/5 (3 votes)
20 Feb 2021CPOL3 min read 38.5K   841   30  
The article continues the topic of image-based CAPTCHAs.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Custom" %>
<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div style="text-align:center">
    Click on the distorted part of the image
    <br />
    <cc:AdvancedImageBasedBotDetector id="botDetector" runat=server DistortionType="Volute"/>    
    <br />
    <asp:Label ID="lblError" ForeColor="red" runat="server"></asp:Label>
    <br />
    <asp:LinkButton ID="btnTest" runat="server" OnClick="btnTest_Click">Test</asp:LinkButton>
    </div>
    <asp:LinkButton ID="btnRefresh" runat="server" CausesValidation=false>Refresh Image</asp:LinkButton>
    <p>
    <span class="remark">Tested on IE 6.0, Firefox 2.0.0.4, Opera 9.2, Safari 3.0.2</span>
    </p>
    </div>
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Ukraine Ukraine
I'm a software developer from Ukraine. I write about ASP.NET and other .NET related topics over at my blog

Comments and Discussions