Categories
PHP
Javascript
MySQL
C#
VB
VB.NET
ASP.NET
Regex
Packaging & compression
General Web Tech
Tech Speak


Google


This website looks best on firefox.
 
Resource Center : Flor Docs -Hidden : <rndPlate Usage - HOW TO:>

rndPlate Usage - HOW TO:

Posted by: Floresense Team
What's rndPlate?
RND Plate is floresense.com's implementation of the CAPTCHA test. The implementation is hosted as a service on this site.

Using rndPlate service you can implement a CAPTCHA test or word test on your webForm in 3 easy steps.

Use RND Plate and protect your webForms from SPAM or robotic Submissions.

STEP 1:
Create a RND Plate for your webform URL (an internet URL). This you do by adding your webform URL in the rndPlate control page. [NOTE: You also have to be a registered user with floresense.com for using any of its services.]
Click here to do this.


STEP 2:
Take the refCode of your rndPlate that you registered for your webform and use it in the below image tag. Use this image tag in your webform for getting the random image or rndPlate.

<IMG hspace=6 src="http://www.floresense.com/rnd/get?id=#YOUR REF CODE" vspace=4 border=0>


Your implementation in your webform should typically look like this.

Sample HTML code for above look:
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY><TR>
<TD width="40%">
<INPUT class=mandatory id=newuser_WordTest type=textbox maxLength=5 size=10 name=newuser_WordTest
value=""/>
</TD>
<TD align=left width="60%">
<IMG hspace=6 vspace=4 border=0
src="http://www.floresense.com/rnd/get?id=7-bcd"/>
</TD>
</TR>
<TR>
<TD colSpan=2>
[Please enter the text that you see in the graphic above, into the textbox beside it.
This prevents spam submissions. Thanks!]
</TD>
</TR>
</TBODY></TABLE>


STEP 3:
Implement a verification call when your webform is submitted.

The call should be to the URL:
http://www.floresense.com/rnd/chk?client=##CLIENT IP##&id=##YOUR REF CODE##&val=##VALUE TYPED BY USER in TEXTBOX##

This URL returns true if the word is right, and false if wrong.

Sample PHP implementation for calling the verification URL and using the output is as below:
<?php

//verify captcha Test..
$strURL = "http://www.floresense.com/rnd/chk?client=".$_SERVER['REMOTE_ADDR']."&id=7-bcd&val=".$_POST['txt_WordTest'];
$CAPTCHAresult=file_get_contents($strURL);

if ($CAPTCHAresult=="true")
$bForm_Submit_valid = true;
else
$bForm_Submit_valid = false;
?>

User Interaction:

Once form submit is valid (if $bForm_Submit_valid is true above), you can execute your other code processing the form's values... with a reasonable assumption that the form was filled by a human and not a computer program.

If form submit is not valid, you can implement code to show the form again to the user with an error message like "Word test failed."


DONE!
Done all that.. you should have implemented CAPTCHA test on your website, with the CAPTCHA served by floresense.com servers.

Crediting Us!
This service is FREE!, yes...but if you intend to use it Free! on your webForms for a longer period, we request you to add a link back to us at the end of your webform, or at the end of your wordTest input field in the form.

You can use one of the below codes for crediting us.


<A href="http://www.floresense.com/pdt_ser">

<IMG src="http://floresense.com/rnd/images/spam-protection-credit.gif"
vspace=2 hspace=4 border=0>
</A>



<A href="http://www.floresense.com/pdt_ser">

<IMG src="http://floresense.com/rnd/images/spam-protection-credit2.gif"
vspace=2 hspace=4 border=0>
</A>

Advertisement

2005 - 2008 © Floresense.com