Snitz GateKeeper Antispam - Posted (32939 Views)
Support Moderator
Podge
Posts: 3776
3776
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. <
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Starting Member
gledav
Posts: 4
4
If anyone can clarify the ambiguous code issue in pop_mail.asp I’d appreciate it. Where is the following?:


if YEmail = "" then
Response.Write "<input name=""YEmail"" type=""text"" value=""" & YEmail & """ size=""25"">"
else
Response.Write "<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & YEmail & "</font>"
end if
Posted
Advanced Member
Carefree
Posts: 4224
4224
Originally posted by gledav
If anyone can clarify the ambiguous code issue in pop_mail.asp I’d appreciate it. Where is the following?:


if YEmail = "" then
Response.Write "<input name=""YEmail"" type=""text"" value=""" & YEmail & """ size=""25"">"
else
Response.Write "<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & YEmail & "</font>"
end if

The instructions do not have that bit of code. That may be why you cannot find it.
Posted
Starting Member
timmay
Posts: 1
1
Is there a way to add the spam question back to the quick reply as well as have it required for people who are logged in? From what I've read, it looks like the spam question goes away once you are logged in.
Thanks for your help.
Posted
Support Moderator
Podge
Posts: 3776
3776
There is no point in having it on the quick reply page. post_info.asp is where the captcha needs to be checked.
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
Originally posted by timmay
Is there a way to add the spam question back to the quick reply as well as have it required for people who are logged in? From what I've read, it looks like the spam question goes away once you are logged in.

As it should be. If its a registered, logged in user that's causing your problems you've got bigger issues that can be solved by locking the account (temporarily or permanently depending on the situation.)
Posted
Starting Member
Joebobby
Posts: 3
3
I'm running into the same issue RE: the missing or different code in pop_mail. Podge refers to some code he had put on an earlier page of this post, but it's no longer there. According to one of his more recent replies, he was going to try and find this...

quote:Can't see anything in your post on page3 Podge.
Thats because its gone missing. I'll see if I can find it somewhere. Podge.

I (and probably others) need this because I'm no coder, so I have no idea what I should or should not be replacing in this section of this file.
Kind regards,

JoeBobb
Posted
Starting Member
systemshock
Posts: 4
4
A couple of points on the implementation

podge's addition on page 3 causes the post_info.asp file to not check the gatekeeper Q/A response as the conditions of the IF are never satisfied. The {strDBNTUserName = ""} is declared earlier in the file so will always be false, so the AND condition will bring back false. The only way to get around this problem is to delete this part of the condition, and follow the mod on page 2 about moving the position of the gatekeeper check to outside the IF statements.
The pop_mail.asp can be fixed if you are using 3.4.06

Follow the first code insert. and for the second. Look for the block of code starting

if YEmail = "" then
Response.Write "<input name=""YEmail"" type=""text"" value=""" & YEmail & """ size=""25"">"
else
Response.Write "<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & YEmail & "</font>"
end if


The string section under this gives you the layout for the main message box, along with the submit button.
Find the end of a table ( e.g look for the </tr> flag ) Insert JUST the IF statement from the readme. MAKE SURE you delete the { & _ } (ignore the curly braces} otherwise you will get a syntax error. And after the IF statement make sure you add the { Response.Write } before the beginning of the next string.
Here is an extract of my code, which will give you the Antispam Q/A table between the message and the submit box.
http://www.radio.warwick.ac.uk/~rclubb/Edit1.txt

Hope this helps anyone else.
Thanks for this mod, it is very useful. Just testing it on my forum to check if it can knock out some of the spam.
Posted
Support Moderator
Podge
Posts: 3776
3776
Can you post your full post_info.asp ?
Posted
New Member
leblanc9425
Posts: 92
92
I just implemented the GateKeeper mod to my v3.4.07 message board and it seems to have fixed my spam registration problem! Initially I used a numeric answer to the question but apparently the spammers know this is common and were still getting through. Instead, I used a more unique question that seems to be working! Yaahhooo.

Thanks a great mod. I was spending a lot of time every day deleting spam registrations. Now, I do not have to check each one as I was doing.
www.Slug-Lines.com
Snitz Version 3.4.07
Posted
Support Moderator
Podge
Posts: 3776
3776
Thanks. Glad you got it working.
You Must enter a message