vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - NoSpam! - an alternative to CAPTCHA images (https://vborg.vbsupport.ru/showthread.php?t=124828)

Gastongr 01-04-2007 11:45 AM

Just what i was looking for, thanks :).

letsjoy 01-04-2007 03:22 PM

A nice one....

antialiasis 01-04-2007 03:36 PM

Quote:

Originally Posted by Luky (Post 1150374)
I think that this would be easier to crack, if you look at the source code and find every possible algorithem and then you can make a php file to answer these questions, or most of them.

Um, huh? You're misunderstanding the function of this somehow. Although I don't understand quite what you're trying to say, you seem to believe one of the following:

a) That the answers are somehow in the source of the page and can just be extracted from there (which they aren't; they're stored on the server and only the number identifying the right answer for this particular question can be found in the source).
b) That the questions are always mathematical and can simply be solved by a computerized calculator (which they're not).
c) That the questions are predetermined and thus could be answered using a simple if statement in a script that hardcodes the questions/answers in, which there is not (there are no default questions and they're 100% user-customizable so there are infinitely many possibilities for questions and answers, at least as far as the server can handle).

I assure you that it is impossible to create a script that will get around NoSpam! unless that script contains the best artificial intelligence yet invented, and if it does, then it can sure as hell crack CAPTCHA as well. I guarantee that this will provide you with better spam protection than CAPTCHA ever will, at least if you use proper questions, and if you don't, that's your fault, not mine.

OrangeFlea 01-05-2007 05:51 AM

This work with 3.5, too? My members are tired of seeing board updates so 3.5 is it until 4.0.

dd4w2000 01-05-2007 08:53 AM

Great mod. I installed this on vb 3.6.2 Unfortunately the nospam field didnt show on my registration page. I looked throught this thread and found a template edit fix which is shown below. Did a search in my registration template and no code alteration had been made. Added the 1 line of code and all is now working. Thanks very much.

Quote:

I think what you do is, go into the Edit template, Register templates, open the one called simply "register".

Then do a search for regimagecheck and you will see:


Code:
<if condition="$show['regimagecheck']">
<fieldset class="fieldset">
I just added $nospamfield above the line like this:



Code:
$nospamfield
<if condition="$show['regimagecheck']">
<fieldset class="fieldset">

BrandiDup 01-05-2007 01:33 PM

I've been having MAJOR problems with spammers lately, getting 10-12+ new ones per day on some days. Since installing this hack, they've come to a screeching halt! I don't think we've had a single one yet. So, thank you SO much. This hack was very much appreciated!

antialiasis 01-05-2007 09:30 PM

Quote:

Originally Posted by OrangeFlea (Post 1151186)
This work with 3.5, too? My members are tired of seeing board updates so 3.5 is it until 4.0.

There is a special 3.5 version - you can either search the 3.5 forum or find it in a link at the bottom of my profile. :)

larrydude 01-05-2007 10:05 PM

hmm. I am running vb 3.64. I love this mod, but it makes the search function not work for guests.

With NoSpam! disabled, guests can search fine, with it inabled they get a "invalid answer" message.

Any ideas?

Thanks.

hsv z clubbie 01-06-2007 02:19 AM

Installed ----- Thanks :D

antialiasis 01-06-2007 05:00 PM

Quote:

Originally Posted by larrydude (Post 1151619)
hmm. I am running vb 3.64. I love this mod, but it makes the search function not work for guests.

With NoSpam! disabled, guests can search fine, with it inabled they get a "invalid answer" message.

Any ideas?

Thanks.

So the NoSpam! question is not actually appearing on the search page?

This is the one most vulnerable to template edits, so something going wrong with it is not too unlikely. If it's not appearing, you might want to make the automatic template edit manually:

FIND

Code:

        <if condition="$imagereg">
REPLACE it with

Code:

        <if condition="$imagereg OR $vbulletin->options['nospam_onoff']">
Then FIND

Code:

            <td align="$stylevar[left]" valign="top" colspan="2">$imagereg</td>
REPLACE it with

Code:

            <td align="$stylevar[left]" valign="top" colspan="2">$nospamfield

$imagereg</td>


larrydude 01-06-2007 05:27 PM

Actually, I had overlooked the option to disable options. As I was getting ready to do your suggestions, I tested and it did what I wanted.

I needed this to work for sign ups, but not for searches.
THANKS!

phill2003 01-07-2007 03:55 PM

Hi,

Could someone post directions to include this in the quickregister hack please.

This is a very good addition.

Luky 01-08-2007 11:45 AM

Quote:

Originally Posted by antialiasis (Post 1150671)
Um, huh? You're misunderstanding the function of this somehow. Although I don't understand quite what you're trying to say, you seem to believe one of the following:

a) That the answers are somehow in the source of the page and can just be extracted from there (which they aren't; they're stored on the server and only the number identifying the right answer for this particular question can be found in the source).
b) That the questions are always mathematical and can simply be solved by a computerized calculator (which they're not).
c) That the questions are predetermined and thus could be answered using a simple if statement in a script that hardcodes the questions/answers in, which there is not (there are no default questions and they're 100% user-customizable so there are infinitely many possibilities for questions and answers, at least as far as the server can handle).

I assure you that it is impossible to create a script that will get around NoSpam! unless that script contains the best artificial intelligence yet invented, and if it does, then it can sure as hell crack CAPTCHA as well. I guarantee that this will provide you with better spam protection than CAPTCHA ever will, at least if you use proper questions, and if you don't, that's your fault, not mine.

B is what i was talking about! :)

Betablocker 01-08-2007 10:51 PM

Nice hack

Easy to install and works a dream :)

Thanks

Doctor Who 01-09-2007 11:02 AM

Great hack, I really appreciate the work you put into this! Hopefully it will decrease the amount of spam users I am getting by even more than image verification!

jw00dy 01-10-2007 05:30 AM

Just wanted to report, that this MOD ROCKS! My spam users have almost gone to nothing. In fact I'd say 0, but as soon as I do, I'll get one, so I'm not going to jinx myself or this mod.

If you love spammers, don't install this. If you hate them, this is a MUST install.

web-rocket 01-10-2007 05:37 AM

Tried it on my forums and got a SQL error vBulletin 3.5.2 I guess it doesnt work for older ver?

ERROR BELOW:

Database error in vBulletin 3.5.2:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Cache the NoSpam! template', 'cache_templates', 'if ($vbulletin->options[\'nospam_onoff\'])\r\n{\r\n if (THIS_SCRIPT == \'register\' OR THIS_SCRIPT == \'search\' OR THIS_SCRIPT == \'newreply\' OR THIS_SCRIPT == \'newthread\')\r\n {\r\n $globaltemplates[] = \'nospam\';\r\n }\r\n else if (THIS_SCRIPT == \'sendmessage\')\r\n {\r\n $actiontemplates[\'contactus\'][] = \'nospam\';\r\n }\r\n}', 'nospam');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Wednesday, January 10th 2007 @ 03:14:20 AM
Script : http://www.talkpaws.com/forums/admincp/plugin.php
Referrer : http://www.talkpaws.com/forums/admin...?do=productadd
IP Address : XXX.XXX.XXX.XXX
Username : XXXXXXX
Classname : XXXXXXX

Smoothie 01-10-2007 03:14 PM

Quote:

Originally Posted by web-rocket (Post 1155248)
Tried it on my forums and got a SQL error vBulletin 3.5.2 I guess it doesnt work for older ver?

ERROR BELOW:

Database error in vBulletin 3.5.2:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Cache the NoSpam! template', 'cache_templates', 'if ($vbulletin->options[\'nospam_onoff\'])\r\n{\r\n if (THIS_SCRIPT == \'register\' OR THIS_SCRIPT == \'search\' OR THIS_SCRIPT == \'newreply\' OR THIS_SCRIPT == \'newthread\')\r\n {\r\n $globaltemplates[] = \'nospam\';\r\n }\r\n else if (THIS_SCRIPT == \'sendmessage\')\r\n {\r\n $actiontemplates[\'contactus\'][] = \'nospam\';\r\n }\r\n}', 'nospam');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Wednesday, January 10th 2007 @ 03:14:20 AM
Script : http://www.talkpaws.com/forums/admincp/plugin.php
Referrer : http://www.talkpaws.com/forums/admin...?do=productadd
IP Address : XXX.XXX.XXX.XXX
Username : XXXXXXX
Classname : XXXXXXX

Did you even bother to search for the older one that works with your version?
:rolleyes:

Stifmeister2 01-10-2007 03:57 PM

Great work. ;)

LBmtb 01-10-2007 06:07 PM

Sweet mod. Thanks a lot!

WoodiE 01-10-2007 06:41 PM

Very nice, I've disabled CAPTCHA and enabled NoSpam! I'll see how well it does over the next week or two.

imported_Tal 01-11-2007 07:14 AM

Hello!

Recently I have been getting a lot of spam accounts created on my forum. I have those CAPTCHA images turned on as well as the e-mail verification but that obviously doesn't help as they just keep coming!

I installed this and it says that it made style changes etc.. there is a new option in the admin CP, however on the registration page there isn't the form to fill out (I did make a question and enable it of course).

If I then click register I get the error 'You have entered the NoSpam! question incorrectly etc'.

The skin I am using is Fusion Expanded from eXtremepixels.

I have no other plugins installed.

Thanks!

Edit: I browsed through the posts here and they instructed me to look for the CAPTCHA image code.. The exact code isn't there but I have found:

Code:

$imagereg
I've put the nospam $ thing above that but to no avail :(

I'm using 3.6.4 also :)

antialiasis 01-11-2007 11:12 PM

"nospam $ thing"? Well, it was $nospamfield, and being exactly like that is very important so I'd like confirmation that that is exactly what you put in. $imagereg is the code you should have been finding, yes, and I am assuming the one you found was indeed in the register template.

imported_Tal 01-12-2007 09:49 AM

Yes.. that's exactly what I put, I wrote 'thing' because I was typing quickly and didn't want to make another [ code ] field because of the license policy :)

It didn't load up unfortunatly and I tried Internet Explorer and Opera (although it shouldn't have made a difference). I uninstalled the product and installed another named 'Enhanced CAPTCHA Image Verification' which gives you 4 pictures to click through.

I would rather have this one as it is near impossible for a bot to crack through whereas the other can just be a 'click 'till it gets lucky'.

This is what I put, for verification:

Code:

<td>
                                                $vbphrase[parent_guardian_email]:<br />
                                                <input type="text" class="bginput" name="parentemail" size="25" maxlength="50" value="$parentemail" dir="ltr" />
                                        </td>
                                </tr>
                                </if>
                                </table>
                        </fieldset>
                        $nospamfield
                        $imagereg
                       
                </div>
        </div>
        </td>
</tr>
</table>

I guess that is wrong? :)

antialiasis 01-12-2007 06:16 PM

Hmm, it should be correct. All the plugins are definitely enabled and unchanged, and you turned the system on, right?

KipLarson 01-13-2007 12:26 AM

Well, I actually posted a link to this on vbulletin.com about how I thought they should use something like this... of course I didn't say I came up with it... but I don't think they like being told that someone that doesn't work on the vBulletin team has come up with something that works better than anything they've come up with.

The stuff they recommend would require an admin to sit at his/her computer constantly to approve new members or not.

cdoyle 01-13-2007 03:35 AM

Hi,
I scanned through the first few pages for this hack, and just wondering if there was an official release of this for 3.5?

We've been getting spammed a ton lately, and this would really help in stopping that.

Thanks

Smoothie 01-13-2007 04:29 AM

Quote:

Originally Posted by cdoyle (Post 1157728)
Hi,
I scanned through the first few pages for this hack, and just wondering if there was an official release of this for 3.5?

We've been getting spammed a ton lately, and this would really help in stopping that.

Thanks

Click the modders profile, and magic will happen. :p

NeoToxic 01-13-2007 07:25 PM

How do i remove the image verification now i have this instead?-- Found it.

For people who want to know. ACP-->VBOptions-->User Registration Options-->Image Verification (Set to no)

KipLarson 01-13-2007 07:51 PM

Right now I have it set on both, the image and the NoSpam! verification question.

By the way I plan to keep a running counter (as long as I can remember to come back)

Of how many days without a spam bot.

So far... 1

King Justice 01-13-2007 10:18 PM

Thank you! This is an awesome plugin - please keep up the great work! :)

Basscat 01-14-2007 04:24 PM

Quote:

Originally Posted by KipLarson (Post 1157652)
Well, I actually posted a link to this on vbulletin.com about how I thought they should use something like this... of course I didn't say I came up with it... but I don't think they like being told that someone that doesn't work on the vBulletin team has come up with something that works better than anything they've come up with.

The stuff they recommend would require an admin to sit at his/her computer constantly to approve new members or not.

The image verification(CAPTCHA) is so difficult, even I struggle on it, and I have 20/20 vision. Based on the amount of posts on all of the forums reguarding spam, you would think they would add something like this to the software.

SPAM BOTS do not think. They process data! Thats what makes this mod so GREAT! There is NO data to process! It takes a human to answer the question.

I nominate this hack for MOTM!

antialiasis 01-14-2007 05:12 PM

To be honest, I understand the vBulletin developers in not wanting this an official feature. This is the kind of thing that works great as a modification, but not as an official feature - when you download forum software, you don't expect to be required to make up stupid questions in order to turn an important feature on, and since it is absolutely essential for NoSpam! to do its job correctly that it has no default questions and is entirely up to the user, this is an unsolvable problem.

Requiring creativity of the user just has an air of unprofessionalism to it, and although I personally am the type that really would do that sort of thing, I can perfectly understand that the vBulletin developers would not be too fond of the idea.

Shanoon 01-14-2007 05:26 PM

This is a godsend! Thanks so much :D I've installed it of course

dzigns 01-16-2007 05:59 AM

Triple A stuff, i love it and have installed it. :)

imported_gc1 01-16-2007 12:06 PM

Fantastic Mod (clicks install)

imported_gc1 01-16-2007 12:10 PM

Quote:

Originally Posted by phill2003 (Post 1152713)
Hi,


Could someone post directions to include this in the quickregister hack please.

This is a very good addition.

Anybody tried this yet? This is would be excellent

antialiasis 01-16-2007 03:27 PM

There is a solution for this in the 3.5 thread, which at a glance I can't see why wouldn't work just fine for 3.6 too (assuming the quickregister template is about the same). Ask if there's a problem, though.

UphillRacers 01-16-2007 05:26 PM

Very impressive.
Clean and functional.

Well done

Caiman 01-16-2007 06:21 PM

Ingenious :) Gone from being inundated with spammers, to having none- using simple maths that any human will be fine completing. Thank you, I'll be recommending this to everyone.


All times are GMT. The time now is 03:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01827 seconds
  • Memory Usage 1,843KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete