Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Adding Image Verification code to registration

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
ederon Posted - 21 April 2008 : 21:37:46
Hello there,
I've been using Snitz forum for about 3 years now and it has been great so far.

I have a question thou:
As you may probably know, recently there has been a TON of spam bots around many forums including Snitz based forums everywhere. Right now I have at least 10 posts a day from completely random spammers. I really don't know if they are using some sort of security failure or actually using some advanced program that actually confirm their address (as I read on AnonJr's post about spammers). The bottom line is, even thou I followed all the instructions on how to prevent these spammers, I still would like to enforce this. I currently have a paid ASP Image Verification component and I would like to add it to my registration.asp, but the code is a bit too confusing to simply manually add it, so I'm kinda scared of messing that page up. Is there any way or hint or place I can add that code? It is a simple 2 line input on both form page and validation page.

<moved from="Help: General / Current Version (v3.4.xx)" by="Shaggy" /><
6   L A T E S T    R E P L I E S    (Newest First)
HuwR Posted - 23 April 2008 : 07:09:12
And there is already a CAPTHCA Mod in existence for Snitz, but they are not usability compliant or even as secure as you think <
HuwR Posted - 23 April 2008 : 07:08:02
version 05 has some security issues, so even if you haven't upgraded you should ENSURE you have all the current security patches installed.<
ederon Posted - 22 April 2008 : 23:25:15
Thanks phy1729 :)
I got it working now :) Unfortunately since I'm still on version 3.4.05 things are not exactly in those lines, but not to worry, I managed to find them by your code hints and updated just fine :) The reason I haven't updated my forum yet is because I'm terrified of losing any random data I've added in the code such as some includes and color managements, and besides, version .05 is working great so far :)
Here is how the image verification code looks on the registration form. I think it would be great if someone make a mod about it to help each other out. Unfortunately I can't do that since my component is paid :D
http://www.ederon.com/forum/policy.asp<
phy1729 Posted - 22 April 2008 : 17:13:03
register.asp line 384

			elseif strMinAge > 0 and strMAge < strMinAge then
				Err_Msg = Err_Msg & "<li>You must be at least " & strMinAge & " years old to join this forum.</li>"
			end if
		end if
		Set Obj = Server.CreateObject("nonnoi_ASPVerify.ASPVerify")
		strVerify = request("strVerify")
		if not Obj.isVerified(strVerify) then
			Err_Msg = Err_Msg & "<li>You must enter the correct letters.</li>"
		End If
		if Err_Msg = "" then
			if Trim(Request.Form("Homepage")) <> "" and lcase(trim(Request.Form("Homepage"))) <> "http://" and Trim(lcase(Request.Form("Homepage"))) <> "https://" and lcase(Request.Form("Homepage")) <> "file:///" then
				regHomepage = ChkString(Request.Form("Homepage"),"SQLString")

inc_profile.asp line 509

				Response.Write	"                      	<option value=""1""" & chkSelect(rs("M_SIG_DEFAULT"),1) & ">Yes</option>" & vbNewLine & _
						"                      	<option value=""0""" & chkSelect(rs("M_SIG_DEFAULT"),0) & ">No</option>" & vbNewLine
			end if
			Response.Write	"                      </select></font></td>" & vbNewLine & _
					"                    </tr>" & vbNewLine
			Response.Write	"                    <tr>" & vbNewLine & _
					"                      <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><img src=""../include/imagev.asp"" /></font></b></td>" & vbNewLine & _
					"                      <td bgColor=""" & strPopUpTableColor & """ valign=""middle""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
					"                      <input name=""strVerify"" type=""text"" value="""" class=""ibuttongrey"" size=""35""></font></td>" & vbNewLine & _
					"                    </tr>" & vbNewLine
		end if
	end if
	if Request.Form("Method_Type") = "Modify" then

I changed the validation code to fit the format. If you had a diffrent layout in mind, please post in more detail.

Edit: Add the code in red. Forgot to tell you that.<
ederon Posted - 22 April 2008 : 11:24:04
sorry about that phy1729.

Here is what I need to insert:
<p>Please read the text in the image and type that text into the box below:</p>
<p><img src="../include/imagev.asp" /></p>
<input name="strVerify" type="text" value="" class="ibuttongrey" size="35">

And I want to insert right below this:
"Signature checkbox checked by default?:" (AKA the last field in the registration form)

And in the validation/submit page this code can be around the field tests:
<%
Set Obj = Server.CreateObject("nonnoi_ASPVerify.ASPVerify")
strVerify = request("strVerify")
if not Obj.isVerified(strVerify) then
errorMsg = true
End If
%>
Notice that I have "errorMsg" variable as an example. I don't know how Snitz forum handles the field verification, but it can probably be around the other confirmations (such as username taken, email taken)<
phy1729 Posted - 21 April 2008 : 22:01:36
If you post the line you need to insert and where on the registration page you would like the image, we would be happy to help.<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.07