Difference between revisions of "NATS4 Adding a Verification Image"

From TMM Wiki
Jump to navigationJump to search
 
(17 intermediate revisions by 8 users not shown)
Line 3: Line 3:
 
}}
 
}}
  
[[NATS4]] contains the option to use [[CAPTCHA]] (Completely Automated Public Tuning test to tell Computers and Humans Apart) images on the external access page. This can provide an additional security measure that helps to prevent against automated login attempts. However, this option is not enabled by default in [[NATS]].
+
[[NATS4]] contains the option to use CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) images on the external access page. This can provide an additional security measure that helps to prevent against automated login attempts. However, this option is not enabled by default in [[NATS]].
  
 
== Affiliate CAPTCHA ==
 
== Affiliate CAPTCHA ==
  
If you would like to add CAPTCHA images to your external access page, go to the [[NATS4 Skins and Templates Admin|Skins & Templates Admin]]. Click the "Advance Skins" tab at the top of the page, then click the "Edit Templates" icon next to the skin you wish to add a CAPTCHA image to. When you are on the "Templates" page, find the ''external_access'' template and click the "Customize Template" icon.  
+
If you would like to add CAPTCHA images to your external access page, first go to the [[NATS4 Configuration Admin|Configuration Admin]]. In the "Current Section" drop down menu, select "Affiliates" option and click the change section button. Find the '''AFFILIATE_SIGNUP_CAPTCHA''' and enable the check box and save.
 +
Your external access page will now contain a CAPTCHA image that must be completed by your affiliates before they can continue browsing.
  
On the Edit Template page, locate the block of code enclosed by the following:
 
<pre> {* VERIFICATION IMAGE OPTIONAL *}
 
          .
 
          .
 
          .
 
{* END VERIFICATION IMAGE *}</pre>
 
  
The code between these two comments are enclosed in their own smarty comment, represented by {* and *}.  To use the CAPTCHA verification image, you will need to remove the comments around this block.
+
== Members CAPTCHA ==
Your external access page will now contain a CAPTCHA image that must be completed by your [[Ct#Affiliate|affiliates]] before they can continue browsing.
 
 
 
If you use the CAPTCHA verification image feature, make sure that you check our [[CAPTCHA]] wiki article for common verification image problems.
 
  
'''NOTE''': If your affiliates have access to multiple skins, you must use the process detailed above to remove block [[Smarty]] comments for each available skin.
+
CAPTCHA can be used for your site's join page. To turn on the CAPTCHA for the site join form, you must do one of the following:
 +
*Set the 'Member CAPTCHA' setting in the Tour settings that this join page is for to 'Yes'
 +
*Enable MEMBER_SIGNUP_USE_CAPTCHA in the Config Admin -> Misc Section
  
== Members CAPTCHA ==
 
  
CAPTCHA can also be used for your members. To turn on the captcha for the site join form, you must:
+
* Set a value for MEMBER_RETRY_CAPTCHA in Config Admin -> Misc Section. This field requires a number greater than 1 and is  the minimum number of failed signups before the CAPTCHA shows.
 +
**In order for the CAPTCHA to show:
 +
***The surfer has to have already attempted to sign up once, and within one hour prior to the present signup.
 +
***The signups have to use the same IP.
 +
***The members have to be Never Joined members for the same site.
  
First, add
 
<pre> " $config['MEMBER_RETRY_CAPTCHA']=2; " </pre> in your includes/config.php, where 2 is the minimum number of signups from Never Joined members before the CAPTCHA shows. This number must be greater than 1. In order for the captcha to show:
 
*The surfer has to have already signed up once, and within one hour prior to the present signup.
 
*The signups have to use the same IP.
 
*The members have to be Never Joined members, and the Never Joined members have to be for the same site.
 
  
 
Then, add  
 
Then, add  
<pre> <input type="hidden" name="captcha_required" value="1"> </pre>
+
<pre>
in the join template where all your input hidden variables are in the join template.
+
{if !empty($vars.captcha_required) || !empty($errors.captcha)}
 
+
  <tr>
Lastly, add
+
    <td colspan="2" style="border:none; text-align: center">
<pre> {if $vars.captcha_required || $errors.captcha}
+
      <img src="/captcha_image.php?width=300&height=90" width="300" height="90" /><br />
<TR><TD colspan=2 style="border:none; text-align: center">
+
      <strong>Please fill in the text from the image</strong><br />
<img src="/captcha_image.php?width=300&height=90" width=300 height=90/>
+
      <input class="join_input" type="text" name="signup[captcha:1]" />
<br><strong>Please fill in the text from the image</strong
+
     
<br/><input class="join_input" type="text" name="signup[captcha:1]">
+
      {if !empty($errors.captcha)}
 
+
        <br />
{if $errors.captcha}<br>{$errors.captcha}</span>{/if}
+
        <span>{$errors.captcha}</span>
</TD></TR>
+
      {/if}
 +
    </td>
 +
  </tr>
 
{/if}  
 
{/if}  
 
</pre>
 
</pre>
 
before your submit button for the join template.
 
before your submit button for the join template.
  
 +
A more stylized example is shown below:
 +
<PRE>
 +
{if !empty($vars.captcha_required) || !empty($errors.captcha)}
 +
<fieldset>
 +
<legend>Captcha Image</legend>
 +
<div class="form_input">
 +
  <tr>
 +
    <td colspan="2" style="border:none; text-align: center">
 +
      <img src="/captcha_image.php?width=300&height=90" width="300" height="90" /><br />
 +
      <strong>Please fill in the text from the image</strong><br />
 +
      <input class="join_input" type="text" name="signup[captcha:1]" />
 +
     
 +
      {if !empty($errors.captcha)}
 +
        <br />
 +
        <span>{$errors.captcha}</span>
 +
      {/if}
 +
    </td>
 +
  </tr>
 +
</fieldset>
 +
{/if}
 +
</PRE>
 +
 +
== Config Admin ==
 +
Config Admin -> 'Misc' section:
 +
* MEMBER_PASSWORD_USE_CAPTCHA : If Set, Password retrieval will require a CAPTCHA verification
 +
* MEMBER_PASSWORD_USE_CAPTCHA_RETRY : Number of Tries a Surfer can make on the Password retrieval page if CAPTCHA is used
 +
* MEMBER_SIGNUP_USE_CAPTCHA : If Set, member signups will require a CAPTCHA verification
 +
* MEMBER_RETRY_CAPTCHA : Number of tries a surfer can make to signup before a CAPTCHA is used
 +
* MEMBER_RETRY_CAPTCHA_HOURS : Number of hours to look back when checking aginst the MEMBER_RETRY_CAPTCHA configuration. By default NATS will look for signup attempts within the past hour
  
 +
Config Admin -> 'Affiliate' section:
 +
* AFFILIATE_SIGNUP_CAPTCHA : Enable Affiliate Signup CAPTCHA Image.
  
 
[[Category:NATS4 Skins and Templates]]
 
[[Category:NATS4 Skins and Templates]]

Latest revision as of 17:11, 16 April 2021

NATS 4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers
Skins and Templates Admin
The Skins and Templates Admin
Skins
Templates
Site Templates
Language Skins
Language Files
custom_errors.php
Join Page Variables
Skipping NATS Join Form
Post URL Variables
Member Usernames & Passwords
Form Validation
Username Recommendations
Password Retrieval
Post-Biller Templates
Geo-Target Join Options
Random Usernames and Passwords
Smarty
Smarty print array
Smarty Plugins
Available Smarty Functions
Affiliate Support Template
Adding a Verification Image
Custom Program and Campaign Selection Pages
Output An Affiliate's Last Paid Date
Affiliate Signup Email
Affiliate Join Page Linkcodes
Approval/Upgrade/Denial Variables
Approval/Upgrade/Denial Template Variables
CSS Theme Builder

NATS4 contains the option to use CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) images on the external access page. This can provide an additional security measure that helps to prevent against automated login attempts. However, this option is not enabled by default in NATS.

Affiliate CAPTCHA

If you would like to add CAPTCHA images to your external access page, first go to the Configuration Admin. In the "Current Section" drop down menu, select "Affiliates" option and click the change section button. Find the AFFILIATE_SIGNUP_CAPTCHA and enable the check box and save. Your external access page will now contain a CAPTCHA image that must be completed by your affiliates before they can continue browsing.


Members CAPTCHA

CAPTCHA can be used for your site's join page. To turn on the CAPTCHA for the site join form, you must do one of the following:

  • Set the 'Member CAPTCHA' setting in the Tour settings that this join page is for to 'Yes'
  • Enable MEMBER_SIGNUP_USE_CAPTCHA in the Config Admin -> Misc Section


  • Set a value for MEMBER_RETRY_CAPTCHA in Config Admin -> Misc Section. This field requires a number greater than 1 and is the minimum number of failed signups before the CAPTCHA shows.
    • In order for the CAPTCHA to show:
      • The surfer has to have already attempted to sign up once, and within one hour prior to the present signup.
      • The signups have to use the same IP.
      • The members have to be Never Joined members for the same site.


Then, add

{if !empty($vars.captcha_required) || !empty($errors.captcha)}
  <tr>
    <td colspan="2" style="border:none; text-align: center">
      <img src="/captcha_image.php?width=300&height=90" width="300" height="90" /><br />
      <strong>Please fill in the text from the image</strong><br />
      <input class="join_input" type="text" name="signup[captcha:1]" />
      
      {if !empty($errors.captcha)}
        <br />
        <span>{$errors.captcha}</span>
      {/if}
    </td>
  </tr>
{/if} 

before your submit button for the join template.

A more stylized example is shown below:

{if !empty($vars.captcha_required) || !empty($errors.captcha)}
<fieldset> 
<legend>Captcha Image</legend> 
<div class="form_input"> 
  <tr>
    <td colspan="2" style="border:none; text-align: center">
      <img src="/captcha_image.php?width=300&height=90" width="300" height="90" /><br />
      <strong>Please fill in the text from the image</strong><br />
      <input class="join_input" type="text" name="signup[captcha:1]" />
      
      {if !empty($errors.captcha)}
        <br />
        <span>{$errors.captcha}</span>
      {/if}
    </td>
  </tr>
</fieldset>
{/if} 

Config Admin

Config Admin -> 'Misc' section:

  • MEMBER_PASSWORD_USE_CAPTCHA : If Set, Password retrieval will require a CAPTCHA verification
  • MEMBER_PASSWORD_USE_CAPTCHA_RETRY : Number of Tries a Surfer can make on the Password retrieval page if CAPTCHA is used
  • MEMBER_SIGNUP_USE_CAPTCHA : If Set, member signups will require a CAPTCHA verification
  • MEMBER_RETRY_CAPTCHA : Number of tries a surfer can make to signup before a CAPTCHA is used
  • MEMBER_RETRY_CAPTCHA_HOURS : Number of hours to look back when checking aginst the MEMBER_RETRY_CAPTCHA configuration. By default NATS will look for signup attempts within the past hour

Config Admin -> 'Affiliate' section:

  • AFFILIATE_SIGNUP_CAPTCHA : Enable Affiliate Signup CAPTCHA Image.