Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Adding Image Verification code to registration
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ederon
Starting Member

8 Posts

Posted - 21 April 2008 :  21:37:46  Show Profile  Visit ederon's Homepage  Reply with Quote
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" /><

Edited by - Shaggy on 22 April 2008 04:19:36

phy1729
Average Member

USA
589 Posts

Posted - 21 April 2008 :  22:01:36  Show Profile  Reply with Quote
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.<
Go to Top of Page

ederon
Starting Member

8 Posts

Posted - 22 April 2008 :  11:24:04  Show Profile  Visit ederon's Homepage  Reply with Quote
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)<

Edited by - ederon on 22 April 2008 11:27:58
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 22 April 2008 :  17:13:03  Show Profile  Reply with Quote
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.<

Edited by - phy1729 on 22 April 2008 17:13:43
Go to Top of Page

ederon
Starting Member

8 Posts

Posted - 22 April 2008 :  23:25:15  Show Profile  Visit ederon's Homepage  Reply with Quote
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<

Edited by - ederon on 22 April 2008 23:26:04
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 23 April 2008 :  07:08:02  Show Profile  Visit HuwR's Homepage  Reply with Quote
version 05 has some security issues, so even if you haven't upgraded you should ENSURE you have all the current security patches installed.<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 23 April 2008 :  07:09:12  Show Profile  Visit HuwR's Homepage  Reply with Quote
And there is already a CAPTHCA Mod in existence for Snitz, but they are not usability compliant or even as secure as you think <
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07