Snitz GateKeeper Antispam

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/62459?pagenum=1
05 November 2025, 01:40

Topic


Podge
Snitz GateKeeper Antispam
31 July 2006, 18:13


Similar to my last mod but should work with screenreaders so hopefully no accessability issues.
Based on the same idea as the WordPress GateKeeper Plugin
This mod may help prevent bots (web robots) from doing the following on your forum;

1. Registering accounts automatically
2. Posting link spam automatically
3. Emailing your members automatically

It does this by asking the user to answer a unique (easy) question which the forum admin can set in the admin area. This is called a CAPTCHA test - Completely Automated Public Turing test to tell Computers and Humans Apart. For more information on Captcha's see - http://www.captcha.net/. This mod should be compatible with screenreaders for accessability purposes.

Example


Please do not use the question or answer in the above example. It would be the first thing programmed into a robot.
Download Courtesy of SnitzBitz
Please post any problems in this thread. <

 

Replies ...


JBaldwin
31 July 2006, 19:30


Please go through and fix the read me. It is REALLY SCREWED UP! Almost every instance similar to this:

Code:
		"                <td bgcolor=""" & strCategoryCellColor """><a name=""gatekeeper""></a><font face=""" & strDefaultFontFace """ size="" strDefaultFontSize """ color="" strCategoryFontColor """   ><b>What is the Antispam Gatekeeper?</b></font></td>" & vbNewLine & _

You are missing the closing:
Code:
 & 

In so many places it is missing an AMPERSAND and some spots (following):
Code:
size=""		
...it is missing a quote and ampersand (" &)
This occurs in nearly every part of the readme. I ended up doing a "FIND" with Dreamweaver in the EDITED FILES and copy/pasted those into the appropriate spots. Just an FYI. <
JBaldwin
31 July 2006, 20:10


I am now also having problem using Quick Reply. It is saying I did not enter/entered incorrect antispam info. Do we need to add the anti-spam boxes to the quick reply as well?<
Podge
31 July 2006, 22:44


Don't know what happened the readme. That shouldn't be happening with the quick reply.<
Podge
01 August 2006, 06:26


I'll try to have a fixed readme by the end of today.<
Astralis
10 August 2006, 12:22


This looks promising and might stop many of my problems. Thanks for sharing, Podge! Is everything in order now?<
tribaliztic
10 August 2006, 12:27


Astralis: This is the thread I was talking about, glad you found it =)
<
Podge
10 August 2006, 14:18


Its not I'm afraid. I haven't had time to fix the instructions. I'll try tonight but I can't guarantee anything.<
Webbo
13 August 2006, 18:51


Just as an aside, and a true tale - I went into a local shop/store and asked for "two dozen stamps" once.
I was told by a young male assistant that they didn't sell dozens but he could sell me two books of twelve if that was okay bigsmile
so maybe the answer isn't as simple to some lol<
bobby131313
04 September 2006, 14:00




Has the read me been updated yet? bigsmile Waiting patiently. tongue
<
JohnC
01 October 2006, 03:18


Any new developments on this mod yet?<
taropatch
02 October 2006, 16:15


I haven't looked closely at this yet. Does the mod accept multiple questions that are in rotation or is it only one question?
Please let us know when the readme has been updated. Thanks for this mod!<
Podge
02 October 2006, 16:43


Sorry, I've been very busy lately.<
Podge
03 October 2006, 19:02


There is only one question which you would have to manually rotate. The idea is to change the question at the first sign of spam. Most of the scripts/apps used to spam forums only work on the base release so installing any spam measure should stop them.
I've updated the zip at SnitzBitz Any volunteers to test the new readme.html ?<
taropatch
03 October 2006, 23:07


WP-Gatekeeper: The strength of Gatekeeper is that it allows you to create any number of challenges you like, and picks one at random to insert into the comment form
Thanks Podge. I just wasn't sure since it looks like the WP-Gatekeeper picks a question at random.
I am uncertain how the spammers are doing their thing. Since I have the Antispam Registration Add-On, it seems that the spammer does manually register. IF he/she saw the question, couldn't they adjust his/her script. A random question would stop them in their tracks. Forgive me, I am just thinking 'typing' out loud.
Really appreciate your time and effort in creating this mod. It will save many forums and their members from spam headaches. Can't thank you enough!<
Podge
04 October 2006, 04:09


Since I have the Antispam Registration Add-On, it seems that the spammer does manually register. IF he/she saw the question, couldn't they adjust his/her script.
Yes. This mod is not designed to stop human spammers, just automated scripts and apps which are designed to spam multiple forums at a time.<
favorini
05 October 2006, 15:01


Does this mod have any issues with 3.4.06?
I noticed that the links in the readme.html to the following are missing the "#":
inc_profile.asp
register.asp
pop_mail.asp

-FF<
favorini
05 October 2006, 16:03


Originally posted by favorini
Does this mod have any issues with 3.4.06?
To answer my own question, the only significant change seems to be with pop_mail.asp, which has changed somewhat. The second edit winds up going at line 181 of original file:

Replace (add the green part, remove the red part)
Code:
					Response.Write	"</td>" & vbNewLine & _
" </tr>" & vbNewLine & _ " <tr>" & vbNewLine & _
with
Code:
					Response.Write	"                </td>" & vbNewLine & _
" </tr>" & vbNewLine
'################################ Begin GateKeeper AntiSpam Mod #################################
if strPopMailGatekeeper = "1" then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Antispam question:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ valign=""top""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & strGatekeeperQuestion & "</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Answer:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ valign=""top""><input name=""GateKeeperAnswer"" size=""25"" type=""text"" value=""" & Request.Form("GateKeeperAnswer") & """></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
'################################ End GateKeeper AntiSpam Mod #################################
Response.Write
" <tr>" & vbNewLine & _
<
favorini
05 October 2006, 17:00


I think that the instructions for post.asp are wrong. The code in question is around line 539 (abbreviated for clarity):

Code:
if mlev = 4 or mlev = 3 or mlev = 2 or mlev = 1 then
'Include username and password from cookie as hidden fields
'(i.e., user is already authenticated)
else
if (lcase(strNoCookies) = "1") or _
(strDBNTUserName = "" or strCkPassWord = "") then
'Include username and password text boxes so user can authenticate '#1 The instructions say put Gatekeeper prompt here end if
end if
'#2 I think you should put Gatekeeper prompt here

Correct me if I'm wrong, but if the prompt goes at #1, it will only show up when the user is not authenticated. If you move it to #2, it will always show up (if it's turned on), which is what you want, since the answer is always checked in post_info.asp.
-FF<
favorini
05 October 2006, 17:13


Another issue is in post_info.asp. The check for GateKeeper answer only
occurs when posting a new topic, but not a reply. To include the check
there also, edit the code near line 1005 of post_info.asp.
Add the part in green (same as the code added to the first part of post_info.asp):

Code:
		if strSignatures = "1" and strDSignatures <> "1" then
if Request.Form("sig") = "yes" and GetSig(strDBNTUserName) <> " " then
txtMessage = txtMessage & vbNewline & vbNewline & ChkString(GetSig(strDBNTUserName), "signature" )
end if
end if
'################################ Begin GateKeeper AntiSpam Mod #################################
if strLinkSpamGatekeeper = "1" then
select case len(Request.Form("GateKeeperAnswer"))
case "0"
Go_Result "You have not entered an answer for the Antispam question. Please use your back button and try again.", 0
case else
if (lcase(Request.Form("GateKeeperAnswer")) <> lcase(strGatekeeperAnswer1)) and (lcase(Request.Form("GateKeeperAnswer")) <> lcase(strGatekeeperAnswer2)) then
Go_Result "You have entered a wrong answer for the Antispam question. Please use your back button and try again.", 0
end if
end select
end if
'################################ End GateKeeper AntiSpam Mod #################################

<
Podge
05 October 2006, 18:01


I've only tried it on v3.5.05. I'll have a look at your suggestions tomorrow while I'm at work smile
All of the spam I've seen has been a bot posting a new topic. It makes sense to prevent replies too.
If you don't mind I'll add you code to the zip also.<
favorini
05 October 2006, 23:33


Originally posted by Podge
All of the spam I've seen has been a bot posting a new topic. It makes sense to prevent replies too.
If you don't mind I'll add you code to the zip also.
Yeah, I figured, but they will adapt eventually. By all means use anything I posted.
-FF<
favorini
05 October 2006, 23:57


Another suggestion...
In post.asp, change the if to add the part in green:
Code:
if strLinkSpamGatekeeper = "1" and (strRqMethod = "Topic" or strRqMethod = "TopicQuote" or strRqMethod = "Reply" or strRqMethod = "ReplyQuote") then
The GateKeeper question isn't needed (or checked) when editing a topic/reply or creating/editing forums/URLs/categories.
-FF
<
favorini
06 October 2006, 01:58


Originally posted by JBaldwin
I am now also having problem using Quick Reply. It is saying I did not enter/entered incorrect antispam info. Do we need to add the anti-spam boxes to the quick reply as well?
Yep. Edit topic.asp in Sub QuickReply around line 1094.
Replace (add the green part, remove the red part)

Code:
			"                <td bgColor=""" & strHeadCellColor & """ noWrap vAlign=""top"" colspan=""2""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """><b>Quick Reply</b></font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _ " <tr>" & vbNewLine & _

with
Code:
			"                <td bgColor=""" & strHeadCellColor & """ noWrap vAlign=""top"" colspan=""2""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """><b>Quick Reply</b></font></td>" & vbNewLine & _
" </tr>" & vbNewLine
'################################ Begin GateKeeper AntiSpam Mod #################################
if strLinkSpamGatekeeper = "1" then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strForumCellColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """><b>Antispam question:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strForumCellColor & """ valign=""top""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & strGatekeeperQuestion & "</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strForumCellColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """><b>Answer:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strForumCellColor & """ valign=""top""><input name=""GateKeeperAnswer"" size=""25"" type=""text"" value=""" & Request.Form("GateKeeperAnswer") & """></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
'################################ End GateKeeper AntiSpam Mod #################################
Response.Write
" <tr>" & vbNewLine & _

<
bobby131313
16 October 2006, 00:33


I think that the instructions for post.asp are wrong. The code in question is around line 539 (abbreviated for clarity):

--------------------------------------------------------------------------------

if mlev = 4 or mlev = 3 or mlev = 2 or mlev = 1 then
'Include username and password from cookie as hidden fields
'(i.e., user is already authenticated)
else
if (lcase(strNoCookies) = "1") or _
(strDBNTUserName = "" or strCkPassWord = "") then
'Include username and password text boxes so user can authenticate
'#1 The instructions say put Gatekeeper prompt here
end if
end if
'#2 I think you should put Gatekeeper prompt here

This still needs to be fixed, the question would not show until I moved the code block after the double "end if" as mentioned before.
Even with having to figure out these problems, it only took me 30 minutes or so.
Thanks Podge! bigsmile


<
janaf
18 October 2006, 11:48


Newbie question:

Any changes required for 3.4.06?

Would it not be a good idea to remove the "Click to send email" link / function, replacing it with a "You can't email yet"-message? It would prevent legitimate but new members from spending time composing emals, just to get a NO message, which is frustrating.<
Podge
18 October 2006, 13:36


Sorry, I've been up to my eyes at work and don't have the time to update the zip with the changes. Don't know if there are any changes for 3.4.06 yet.<
janaf
19 October 2006, 10:38


Thats OK, I will try manually inserting your code line by line instead of using the edited files.
What do you think of a scheeme like this:

- New user signs by entering only the email adderess (and CAPTCHA test). The address and a random number is stored as a temporary record. - Confirmation mail with a signup link and random number is sent
- Person completes the proper signup
- If no response is recieved within x time, the temporary record is disabled/deleted.
This way the forum admin never needs to see the signups until the above procedure is completed.
<
Podge
19 October 2006, 12:03


Thats very like the way that email validation works at the moment only the random part is part of the "signup link" as a querystring.<
marckmcgill
26 November 2006, 12:18


Hello there Podge, I just installed your MOD. Great piece of software, I hope it'll solve my problems. The setup hasn't been a problem, I just have two additional notes:

I think that the instructions for post.asp are wrong. The code in question is around line 539 (abbreviated for clarity):

--------------------------------------------------------------------------------

if mlev = 4 or mlev = 3 or mlev = 2 or mlev = 1 then
'Include username and password from cookie as hidden fields
'(i.e., user is already authenticated)
else
if (lcase(strNoCookies) = "1") or _
(strDBNTUserName = "" or strCkPassWord = "") then
'Include username and password text boxes so user can authenticate
'#1 The instructions say put Gatekeeper prompt here
end if
end if
'#2 I think you should put Gatekeeper prompt here

Mmmhhh... Apparently, if the block is put in position #1, the antispam question will NOT be asked BUT new topics will be blocked.
However, if the Gatekeeper block is put in postion #2, it will ALWAYS ask the question,
even to subscribers who are logged in. I don't think the avarage administrator wants it to work this way (oh, well.. at least I dont'... bigsmile). Having to fill the answer field every time is extremely annoying and perhaps not very useful until a board doesn't have GREAT issues with spam.
Is there a way to let the admin choose between mode "ask the question when opening a new topic" and mode "let those who are logged in open new topics freely without antispam question"?.
Cheers - M.<
Podge
28 November 2006, 04:57


I think you are wrong. Can you post a link to a text version of your post.asp ?<
marckmcgill
28 November 2006, 05:08


Originally posted by Podge
I think you are wrong.
This happens most of the times. wink
I am surprised at this strange gatekeeper behaviour, as other users told me it was feasible to set it in such a way that the antispam question was not asked at every new topic.
As I wasn't seeing a dedicated switch in the "features configuration" table, I then figured I had to put the block said above in postion #1, as in postion #2 the question was always asked. I could eventually have messed up something in this process, as I'm not an ace with asp and had to dig through all these previous posts to see what I could do. Here we go: (thanks for help)

http://www.highinfidelity.net/public/post.txt
<
Podge
28 November 2006, 08:39


I've been wrong on occassion too.
There are some slight differences between mine and your post.asp but nothing I can see which would cause the behaviour you're seeing.
If you put the GateKeeper code at #1 above then it will only be displayed when the username and password boxes are displayed (i.e. user is not logged in). If you put it at #2 then it will always be displayed. Your post.asp seems correct.

Do you have a link to your forum and a test login so I can test it?<
marckmcgill
28 November 2006, 08:49


Do you have a link to your forum and a test login so I can test it?
Yep: http://www.highinfidelity.net/genesisforum/default.asp
USR and PWD are both "*****". Try to open a new topic. Will delete the above once you'll say you've done. Thank you very much for helping... smile<
Podge
28 November 2006, 10:09


The problem is with post_info.asp, not post.asp.

post_info.asp has to check for the AntiSpam answer if you have "Link Spam Gatekeeper" turned on here - http://www.highinfidelity.net/genesisforum/admin_config_features.asp

If you add the following two red highlighted lines around the gatekeeper code in post_info.asp it may work. I'll test it fully when I get home;

Code:

'Gatekeeper Mod
if (lcase(strNoCookies) = "1") or (strDBNTUserName = "" or strCkPassWord = "") then if strLinkSpamGatekeeper = "1" then
select case len(Request.Form("GateKeeperAnswer"))
case "0"
Go_Result "You have not entered an answer for the Antispam question. Please use your back button and try again.", 0
case else
if (lcase(Request.Form("GateKeeperAnswer")) <> lcase(strGatekeeperAnswer1)) and (lcase(Request.Form("GateKeeperAnswer")) <> lcase(strGatekeeperAnswer2)) then
Go_Result "You have entered a wrong answer for the Antispam question. Please use your back button and try again.", 0
end if
end select
end if
end if 'Gatekeeper Mod
This hsould check to see if the user is logged in and if LinkSpamGatekeeper is enabled when posting. Let me know if you have have further problems with it.<
marckmcgill
28 November 2006, 10:15


Podge, thank you SO MUCH, I will upload the new lines this evening and see. smile
I didn't understand exactly what's the purpose of the link gatekeeper, by the way. Does it check if links has been put in the body of the post, perhaps?<
Podge
28 November 2006, 10:25


No it doesn't, although I believe someone has already implemented a mod for that some time ago.
The link spam bots usually make a post request to post_info.asp without going from post.asp. There is no way (that I know of) to tell whether a form field was hidden on post.asp or if it was not hidden (in the case of a bot or un-authenticated user) when making a HTTP POST request to post_info.asp.<
marckmcgill
29 November 2006, 04:39


Hello Podge, thanks for your support. Unfortunately adding the two lines didn't change things (I wonder if some cache is still reading the old file on the server, as the code you added makes a lot of sense).
I'm temporarily switching the "link spam" feature off. A webbot can't write spam if it hasn't already opened a valid account, am I right?
Please let me know if you have further thoughts. Cheers - Marco.<
wwwatcher1
05 December 2006, 10:07


Podge

Does the mod work with 3.4.06 without any problems? I just download *3305-1~1.zip. that should be the newest file.<
Podge
05 December 2006, 11:08


I've only tried it with 3.4.05.
I know there were changes to post.asp in 3.4.06 so I assume that at the very least the line numbers will be different.<
dondon
07 December 2006, 15:36


Hello Podge

Having run a basic BBS for some time I decided to move to something with more facilities and loaded SNITZ. Having suffered previously with Spammers I downloaded your Gatekeeper with the intension of installing it, however, I have been a little put off by all the problems/changes identified by you and users. Can you tell me if the files I downloaded contain all the updates?

Thanks<
Podge
07 December 2006, 16:46


I updated the zip to fix the problems with the readme in the beginning. The code suggestions by other members have not been added.
Its not a difficult mod to get working.
The truth is, if you were to implement your own unique spam check it would prevent most bot spam. For instance, you could include a non-standard hidden form field on post.asp and check for it on post_info.asp.<
borge
08 December 2006, 02:16


Originally posted by Podge
The truth is, if you were to implement your own unique spam check it would prevent most bot spam. For instance, you could include a non-standard hidden form field on post.asp and check for it on post_info.asp.
Podge, would it be possible for you to post a code example and description on how to do that? (maybe as a new topic?)<
dondon
08 December 2006, 12:57


Hello Podge

I have carried out all the editing for the Gatekeeper mod but I have the problem that the Gatekeeper questions are not appearing when posting a new topic. The posting then fails as I have not answered the 'invisble' question.
I inserted the two lines you recommended above but to no avail.
Any suggestion where the problem may lie?
Thanks a lot.<
Podge
08 December 2006, 13:54


The question should not appear unless you are logged out.
Can you post a link to your post.asp as a text file ? i.e. http://www.yourforum.com/post.asp.txt<
dondon
09 December 2006, 07:14


Podge

You say 'The question should not appear unless you are logged out' but one cannot get further than the member loggin page when entering the Forum so I don't quite understand your statement. (Sorry if I'm seeming to be a bit slow)

Anyway - here is the link for you

http://www.sealasc.org.uk/bbs/post.asp.txt

Thank you.<
Podge
09 December 2006, 07:52


Gog a 404 not found for your link.
Logged in users should not see the gatekeeper antispam question. Requiring login to access the forum has no bearing on the problem. If you want to see the gatekeeper question, disable "Require registration", logout and then try to post a new topic. Before you can post you have to enter a username, password and gatekeeper answer along with the subject & text of the topic.<
janaf
09 December 2006, 13:29


Thanks for a gread mod!
I had some problems with 3.4.06 but with 3.4.05
I simply downloaded the files from SnitzBitz and it worked.<
dondon
11 December 2006, 05:43


Podge

Sorry for the delay in coming back.
I tried your suggestion and though I saw the two lines requesting one to register, the Gatekeeper question did not appear.
Don<
dondon
11 December 2006, 10:52


Podge

Further to my last posting - I replaced my post.asp with the one in the downloaded edited folder.
The situation is this.
If I have Link Spam Gatekeeper set to on and do not register on entry - I get the request to register and the Gatekeeper question OK.
However, if I do register on entry and try to post, the three lines do not show but the posting is not permitted and I get the message

There has been a problem!
You have not entered an answer for the Antispam question. Please use your back button and try again

But there is no question visible to answer.
Hope this gives you a clue.
By the way I noticed the size of the post file I edited is 74Kb but the one in the Edited folder is 73Kb.
Thanks for your patience.
Don
<
Podge
11 December 2006, 11:23


By "register" you mean "login" ??
The question shows if you logout and go here - http://www.sealasc.org.uk/bbs/post.asp?method=Topic&FORUM_ID=15

http://storage.oxle.com/pupload/view/208<
Podge
11 December 2006, 11:36


There is a bug. In post_info.asp replace the Gatekeeper block of code with this

Code:
		'Gatekeeper Mod
if strLinkSpamGatekeeper = "1" and strDBNTUserName = "" then
select case len(Request.Form("GateKeeperAnswer"))
case "0"
Go_Result "You have not entered an answer for the Antispam question. Please use your back button and try again.", 0
case else
if (lcase(Request.Form("GateKeeperAnswer")) <> lcase(strGatekeeperAnswer1)) and (lcase(Request.Form("GateKeeperAnswer")) <> lcase(strGatekeeperAnswer2)) then
Go_Result "You have entered a wrong answer for the Antispam question. Please use your back button and try again.", 0
end if
end select
end if
'Gatekeeper Mod

I cannot test this until later this evening when I get back from work.<
dondon
11 December 2006, 16:24


Podge

Tried your modification.
Now -

If not logged in and if I try to post a new topic I see the three lines asking me to log in and answer the Gatekeeper question; however, if I am logged in and try to post a new topic I am able to as I do not see the Gatekeeper question. Would I expect to or am I misunderstanding how this should work?
Regards

Don<
Podge
11 December 2006, 16:34


You are misunderstanding how this works. The link spam this mod is trying to stop is normally posted by a robot which sends a http POST request to post_info.asp. The robot doesn't support cookies (or doesn't try to fake them) so it sends the username & password directly to post_info.asp. It doesn't know the answer to the gatekeeper question so the spam is not posted. There is the possibility that its a person who just hasn't logged in or a person using a browser which does not support cookies (or has them turned off), thats why the question is shown on post.asp. If a user is logged in, they probably are human and are not asked the question.
favorini actually posted a fix for this earlier in the topic but I have yet to test it. <
dondon
12 December 2006, 15:51


Podge

Thanks - well it seems that your last edit fixed my problem and so I thank you for your support.
Best regards

Don<
Pertinax
24 September 2007, 14:36


I'm using 3.4.06 with the Site Integration mod, too.
I have a problem with the instructions for pop_mail.asp

They say Around line 174 find these four lines
Code:
				if YEmail <> "" then Response.Write(YEmail)
Response.Write "</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _ if YEmail <> "" then Response.Write(YEmail)
Response.Write "" & vbNewLine & _
" " & vbNewLine & _
" <tr>" & vbNewLine & _

however, there's no line that has if YEmail <> "" the line at 188 has the opposite if YEmail = ""
What should be the correct modification to make, please ? <
Pertinax
24 September 2007, 14:43


The other problem is that it says
Around line 174 find these four lines but it then gives 7 lines to look for.
So, should I be replacing just the first 4 lines, or all 7 lines ?<
earlabs
26 September 2007, 05:38


I have exact the same problem. It also happened with the CAPTCHA mod. Podge then refered to the Gatekeeper mod but ironically we encounter the same problem here....
So, Podge, what do we do?<
Podge
26 September 2007, 06:31


earlabs
28 September 2007, 02:11


Darned! I keep getting a registration page with no questions asked. The Fields are there, but I cannot see any question and thus cannot answer it.......<
Podge
28 September 2007, 05:02


Check the changes in inc_profile.asp<
mmitchell_houston
11 April 2008, 01:20


URGENT for 4.06: I cannot find the text to replace in the pop_mail.asp page. I'm going to try to forge ahead without this and see what happens.

if YEmail <> "" then Response.Write(YEmail)
Response.Write "</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _ if YEmail <> "" then Response.Write(YEmail)
Response.Write "" & vbNewLine & _
" " & vbNewLine & _
" <tr>" & vbNewLine & _
<
Podge
11 April 2008, 06:51


The answer is three posts above yours.<
leblanc9425
17 April 2008, 20:41


Podge,
This mod sounds like the EXACT solution I am looking for to curb the tons of spam I get on my message board. However, is the download that is available on SnitzBitz have all the updates applied?

After scanning the thread and looking at the code, the download did not seem to have some of the updates.
Do you have a current set of files to download?<
Berrie
07 September 2008, 08:40


I recently installed the Gatekeeper MOD. It seems to work properly, only one thing doesn't work.
When I want to post a reply, or quick reply, it asks for the gatekeeper anti-spam answer? I edited every page which stood in the .rar file.
Did I mess something up in the post.asp or something?
I also dot not have this option in the menu. But me and my members can post new topics...
[/img]
I'm running Snitz Forums 2000 Version 3.4.06

Please help?smile<
bobby131313
07 September 2008, 08:53


You should have the option to turn it on/off in on admin_config_features.asp. It's called Link Spam Gatekeeper. If you really don't have it, I would double check your edits on that page first.<
Berrie
07 September 2008, 10:05


Thanks, just checked. When I turn Link Spam Gatekeeper off I can post reply's again.
So there must be something wrong in the post.asp. I will double check it.
Thank for the help so farsmile<
bobby131313
07 September 2008, 11:41


OK I'm confused now. In your first post you never really said you couldn't reply.
I assumed that you could post by answering the question, you just wanted to turn it off for posting and couldn't. That's why my reply was... what it was.
So I may not really have been any help at all. Sorry. blush<
xplod4202
21 October 2008, 19:07


I modified the files and uploaded them to my home dir, after that i get page can not be displayed. thenameofmyforum/default.asp<
AnonJr
21 October 2008, 20:44


Turn off simple error messages and the technical information at the bottom of the (non-simple?) error message should at least give a clue as to what's going on. I'd also double-check your changes. More often than not its something that didn't get pasted right and/or put in the wrong place, or some other simple thing like a typo. Even with the best of us.<
xplod4202
22 October 2008, 13:17


ok, i got that part working, data base error. Now everything shows up where it should. the problem is that for some reason it does not validate anything. If i put wrong answer it still registers it.<
Podge
22 October 2008, 18:24


Check the changes you made in post_info.asp

Can you upload a text version of it to your webspace i.e. post_info.txt and post a link to it here ?<
xplod4202
22 October 2008, 18:58


I got it working. One question. Is Link Spam Gatekeeper should ask you for password that i set up every time before some one posts something?<
Podge
23 October 2008, 07:47


Is Link Spam Gatekeeper should ask you for password that i set up every time before some one posts something?
If you are logged in you won't be asked the question at all. If you are logged out you should be asked the Gatekeeper question everytime, a bit like how the Captcha will be displayed for you here.<
xplod4202
23 October 2008, 11:05


ok, thanks. So is the Captcha not really working for Version 3.4.06?<
Podge
23 October 2008, 11:17


It should be working for v34.06. Its not shown to logged in users by design (as they are not spamming robots). Robots that POST to post_info.asp without being logged in will be challenged by the Gatekeeper.

What is your forum url ?<
xplod4202
23 October 2008, 17:04


I haven't installed the Captcha mod yet, as it said that there is some issues with it and to use gatekeeper instead. Is there a particular captcha that i should be installing?
http://forum.gefen.com/<
Podge
23 October 2008, 17:25


There are accessibility issues with image captchas i.e. visually disabled people have great difficulty with them.
A Gatekeeper style captcha can be read by screen readers and are accessibility friendly.

Use Gatekeeper.<
TardisAU
18 November 2008, 18:54


Hi Podge ... I too have read through this topic (several times), with the many suggestions on how to make it work - including changes to the files.
However, I am still to work out if the download includes the modified files or not; I have attempted an implementation using the "editted" files without success including some of the suggestions throughout this topic.
Is there a "working" set of files for this mod for Snitz 3.4.06..? Where do I get them?
Thanks!<
Podge
18 November 2008, 19:00


Where is your forum?<
TardisAU
18 November 2008, 19:25


http://www.endeavour.asn.au/forum<
Podge
19 November 2008, 09:09


Can you post a txt version of your register.asp ?
http://www.endeavour.asn.au/forum/register.asp is broken.<
TardisAU
19 November 2008, 14:50


It should be OK now Podge - I think that was a leftover file from the mod when I was trying to make things work; the original file has been uploaded now. In any case it is here: http://www.endeavour.asn.au/forum/register.txt<
Podge
19 November 2008, 17:27


Can you turn off "Require registration" so I can check if gatekeeper is working for post.asp ?
Gatekeeper is turned off for registration.<
TardisAU
20 November 2008, 15:04


Podge ... I have uploaded the "edited" files in the mod again; forum "Require Registration" is off and all options of Gatekeeper are On (by default).<
Podge
20 November 2008, 15:55


Theres an error on post.asp - http://www.endeavour.asn.au/forum/post.asp?method=Topic&FORUM_ID=81
Code:
Expected end of statement 

/forum/post.asp, line 1485

Response.write " <br /><div align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefageText"">" & formatStr(ReplyMessage) & "</span></font></td>" & vbNewline & _

That line should be
Code:
	Response.write 	"      <br /><div align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiliteFontColor & """>" & message & "</font></div>" &_

You should apply the mod to register.asp and see if it works. There's no point in posting a default register.asp as a text file.<
TardisAU
21 November 2008, 03:27


Ok ... changed that. I have tried to Register but IE shows Page Cannot be Found for register.asp - your thoughts?<
Podge
21 November 2008, 07:09


You should change the extension from register.txt to register.asp

Apply the mod to it first.<
TardisAU
21 November 2008, 15:33


Podge ... the register.txt file is just the one you asked for earlier - it's not called (now removed). The register.asp file is the edited file included with the mod download ... how do I apply the mod to this file?<
Podge
22 November 2008, 12:05


There is still an error on post.asp and register.asp isn't there either

http://www.endeavour.asn.au/forum/post.asp?method=Topic&FORUM_ID=81
http://www.endeavour.asn.au/forum/register.asp<
TardisAU
22 November 2008, 15:19


Given that the only change made to post.asp is the one above at line 1485 and that this file is the one included in the mod - not sure what else to tell you about it.

You say that register.asp isn't there - it sure is ... I can see it with ftp - I uploaded it again also ... what next?<
Podge
22 November 2008, 15:40


Can you post txt versions of both post.asp and register.asp ?
Whatever has been done to register.asp it is redirecting to itself. This is the error I get in Firefox - "Redirect Loop - Firefox has detected that the server is redirecting the request for this address in a way that will never complete."<
TardisAU
22 November 2008, 15:50


http://www.endeavour.asn.au/forum/post.txt and
http://www.endeavour.asn.au/forum/register.txt<
Podge
23 November 2008, 12:33


I'm not sure what you've done to post.asp but there are two Go-Result functions at the end of the file. It should look like this
Code:
function Go_Result(message) 
Response.write " <br /><div align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiliteFontColor & """>" & message & "</font></div>" &_
" <br />" &_
" <meta http-equiv=""Refresh"" content=""2; URL=default.asp"">"
WriteFooter
Response.end
end function
Yours looks like this (the red text is extra)
Code:
function Go_Result(message) 
Response.write " <br /><div align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiliteFontColor & """>" & message & "</font></div>" &_
" </tr>" & vbNewline
strI = strI + 1
if strI = 2 then
strI = 0
end if
next
end if

Response.Write " </table>" & vbNewline & _
" </td>" & vbNewline & _
" </tr>" & vbNewline & _
" </table>" & vbNewline & _
" <br />" & vbNewline
end if
WriteFooter

function Go_Result(message)
Response.write " <br /><div align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiliteFontColor & """>" & message & "</font></div>" &_
" <br />" &_
" <meta http-equiv=""Refresh"" content=""2; URL=default.asp"">"
WriteFooter
Response.end
end function
<
Podge
23 November 2008, 12:42


You should use a 3.4.05 register.asp with a 3.4.06 forum. I think thats whats causing the redirect loop.
This is a correct register.asp for v3.4.06 with gatekeeper installed - http://docs.google.com/View?docid=dfps425d_0cpc42dcr<
TardisAU
23 November 2008, 14:09


OK ... seem to be getting somewhere now - have fixed your last two posts. Now, can register successfully (including Gatekeeper); however, when attempting to post, an error advising that the antispam question has not been answered appears - although there was no question in the form to answer.<
Podge
24 November 2008, 08:52


I need your post_info.txt<
Podge
24 November 2008, 08:57


Replace the Gatekeeper block of code in post_info.asp with this block of code

Code:
		'Gatekeeper Mod
if strLinkSpamGatekeeper = "1" and strDBNTUserName = "" then
select case len(Request.Form("GateKeeperAnswer"))
case "0"
Go_Result "You have not entered an answer for the Antispam question. Please use your back button and try again.", 0
case else
if (lcase(Request.Form("GateKeeperAnswer")) <> lcase(strGatekeeperAnswer1)) and (lcase(Request.Form("GateKeeperAnswer")) <> lcase(strGatekeeperAnswer2)) then
Go_Result "You have entered a wrong answer for the Antispam question. Please use your back button and try again.", 0
end if
end select
end if
'Gatekeeper Mod
<
TardisAU
24 November 2008, 15:11


Podge ... I have made that change to post_info.asp and other than a script error in register.asp (that doesn't seem to effect anything) all seems to be working as it should.
Thanks for your help!<
Podge
24 November 2008, 18:06


Register.asp seems ok to me. I didn't see any script error.
post.asp isn't working as it should - http://www.endeavour.asn.au/forum/post.asp?method=Topic&FORUM_ID=37

Gatekeeper isn't showing when logged out and _result appears on the top left. I presume its part of the Go_Result function. Can you post a link to a txt version of your post.asp ?<
TardisAU
25 November 2008, 03:23


ah! ... I missed that ... http://www.endeavour.asn.au/forum/post.txt
<
© 2000-2021 Snitz™ Communications