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)

antialiasis 09-01-2006 04:10 PM

Ooh, of course - it was only put in a template of its own in 3.6. So yeah, do it like dartho says.

jetblast10 09-07-2006 11:42 AM

Sweet! Thanks!

Master Nemesis 09-07-2006 07:28 PM

will download and install later
Thanks

toolblast 09-09-2006 03:17 AM

Wow man! Thanks so much! This is EXACTLY what I was looking for after reading a thread on vb.com about spamming and how CAPTCHA in 3.5 was cracked by spammers already. Im going to install it asap!

Hornstar 09-09-2006 08:53 AM

Quote:

Originally Posted by antialiasis
The answers are case sensitive at the moment, but I was now thinking about giving it a little more flexibility, both by making it case insensitive and allowing you to specify multiple possible answers to the same question (for example, if you were using the first question in your list, I believe the British would answer it with "Petrol" rather than "Gas").

I'll give you an admin CP screenshot when I've done those tweaks.

Yeah multiple answers would be good, like you said, the answer could be

gas Gas Petrol petrol diesel Diesel and probably many other alternatives as well ^^ lol

btw can this be used with the image verification system as well to create a double protection?

mauisun 09-09-2006 02:21 PM

installed on 3.60 newest version, works good, thanks :)
....mauisun

antialiasis 09-09-2006 05:40 PM

Quote:

Originally Posted by hornstar1337
Yeah multiple answers would be good, like you said, the answer could be

gas Gas Petrol petrol diesel Diesel and probably many other alternatives as well ^^ lol

btw can this be used with the image verification system as well to create a double protection?

I already made that update, and yes, it can be used with image verification.

dartho 09-10-2006 10:50 AM

I was getting a spammer a day befoer I installed this - 10 day of NO SPAM. Nice Work

Biggles 09-12-2006 10:38 PM

Excellent hack AA. Much obliged to you. Have clicked and nominated for HOTM. Well done. It's working great on my board.

kevinj 09-17-2006 09:07 PM

Thanks for this hack,

I've been recieving lots of fake registrations from spam bots. Problem solved now :)

HondaATC 09-17-2006 11:42 PM

Anyway to make this work on 3.5.4?

antialiasis 09-17-2006 11:59 PM

Flip to page three of this thread, download the product XML attached to post #36 and then make the template edit as dartho instructs a couple of posts below. :)

HondaATC 09-18-2006 12:28 AM

Quote:

Originally Posted by dartho
There in may lay the problem - there is no "$imagereg" See template code below:

I added in a $nospamfield just above this, and it all came togther - thanks!

Code:

                        <if condition="$show['regimagecheck']">
                        <fieldset class="fieldset">
                                <legend>$vbphrase[image_verification]</legend>
                                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                <tr>
                                        <td>
                                                $vbphrase[enter_text_image_right]
                                        </td>
                                        <td rowspan="2"><img src="image.php?$session[sessionurl]type=regcheck&amp;imagehash=$imagehash" alt="$vbphrase[registration_image]" width="201" height="61" border="0" /></td>
                                </tr>
                                <tr>
                                        <td><input type="text" class="bginput" name="imagestamp" size="50" maxlength="6" /><input type="hidden" name="imagehash" value="$imagehash" /></td>
                                </tr>
                                </table>
                        </fieldset>
                        </if>



Which template do I need to edit this into? Sorry, didn't see the name of it specified on page 3. Thanks ;)

pr0team.net 09-18-2006 02:05 AM

easy for spambots :)
it's not alternative to captcha this is 100 % better than captcha for spambots trust me.

SpanishHarlem 09-18-2006 04:43 AM

Thank's for this. I really hope it help's keep the spammers out

moonclamp 09-18-2006 03:25 PM

Is it possible for someone to input the answer via a checkbox or radio button? If someone has a selection they'll be less likely to make spelling mistakes.

Also, could this easily be added to the bit where a member verifies there age, before they even agree to the rules?

Does this work on the guests contact form and search pages?

remasnet 09-18-2006 05:43 PM

Great idea I will install it
Thnx

antialiasis 09-18-2006 11:07 PM

Quote:

Originally Posted by HondaATC
Which template do I need to edit this into? Sorry, didn't see the name of it specified on page 3. Thanks ;)

It's the register template.

Quote:

Originally Posted by moonclamp
Is it possible for someone to input the answer via a checkbox or radio button? If someone has a selection they'll be less likely to make spelling mistakes.

Also, could this easily be added to the bit where a member verifies there age, before they even agree to the rules?

Does this work on the guests contact form and search pages?

Hmm, I'd have to mess around a little for all of those. I'll look into it.

adwade 09-20-2006 07:59 AM

I was wondering if this MOD could be used another place in vBulletin besides just the registeration process? Namely,

-------------------------------------------------------------------------
Ref: Tipem's comment...
Surprisingly enough, I've tried this and it's worked (not involving verification images or captcha).

On your web form, have a "verify" input text box. Above that say: "Enter in 'V f r 4 R $' without spaces or quotes in the text box below" (and the verification code can be static).

And whaddya know -- no spam from email web forms. Eventually spam bots might figure this out, but it can be a quick fix. To make it even more difficult, you could say "Enter in 'V-4-R-$-s' with no spaces, quotes, or dashes in the text box below." Because a spam bot isn't human, they cannot comprehend this. It's all about fooling bots. The key is not to do it a methodical way, not a hidden or "tricky" way -- just an "odd" way that only humans can comprehend.

Simple.
taken from http://www.sitepoint.com/forums/showthread.php?t=417095
-------------------------------------------------------------------------

Upon reading that, I wondered if this MOD could be used on the 'contact us' form as well as the new user registeration perhaps? If so, where would one add the code in vBulletin to do so?

GREAT MOD by the way, one of my favorites!

antialiasis 09-20-2006 10:45 PM

Well, as a quick non-tested solution for now to add it to the contact us form:

1. Edit the "Cache the NoSpam! template" plugin to say:

Code:

if (THIS_SCRIPT == 'register' OR THIS_SCRIPT == 'sendmessage')
{
  $globaltemplates[] = 'nospam';
}

2. Copy the entire text of the "Check if NoSpam! question has been answered correctly" into another plugin located at the sendmessage_docontactus_start hook

3. Make a new plugin on the sendmessage_contactus_start hook with the following code:

Code:

if ($vbulletin->options['nospam_onoff'])
{
  $vbulletin->templatecache['contactus'] = str_replace('$imagereg', '$nospamfield\n\n$imagereg', $vbulletin->templatecache['contactus']);
  $questions = explode("\n", $vbulletin->options['nospam_questions']);
  $nospamnumber = array_rand($questions);
  $qanda = explode(":",$questions["$nospamnumber"]);
  $nospamquestion = $qanda[0];

  eval('$nospamfield = "' . fetch_template('nospam') . '";');
}

And that should be it. Again, note that it's not tested.

adwade 09-21-2006 04:17 AM

Quote:

Originally Posted by antialiasis
Well, as a quick non-tested solution for now to add it to the contact us form:
.
...:knockedout: (cloud of confusion to the all UN-knowing) :knockedout:
.
And that should be it. Again, note that it's not tested.

Let me repeat back what I heard you say: "If you know what you're doing, it's possible." ha, ha :confused: You lost me on step #2 I'm afraid, but then I'm not a coder. I do well to follow simple template edits without screwing things up. :nervous:

Anyway, as I said just a tremendous MOD. I think it will be able to stop many a spambot in it's tracks.

antialiasis 09-21-2006 06:36 AM

Well, to copy the text of a plugin into another one, you go to "Plugin Manager" in the Admin CP menu (under Plugins and Products, close to the bottom), find the plugin with the right name (using the browser's search function is probably the easiest way to do this), click its name, copy the "Plugin PHP Code" and then click "Add New Plugin" (the link under "Plugin Manager") and paste it into the "Plugin PHP Code" instead. Select the hook with the specified name in the "Hook Location" drop-down, and I suggest also selecting "NoSpam!" in the "Product" drop-down. Lastly, set "Plugin is Active" to Yes. To just add a new plugin with predefined text, do everything from the part where I tell you to click "Add New Plugin" again.

If you still find it confusing, it won't be long before this is all in the product itself anyway.

Ski-Whiz 09-22-2006 04:32 AM

Not sure if this is posted, but you can simply create a new profile field, make it editible on at registration..

Add a new "single line text" field.. It's pretty easy..

Good idea though..

Skedoozy 09-22-2006 08:29 AM

Installed!

I've been getting a lot of spammers signing up lately, hopefully this will take care of them. Thanks!

Gripemaster 09-26-2006 02:35 AM

*INSTALLED* Thank you! I like! :)

AndyZ 09-29-2006 02:08 AM

Very nice functionality, and a plug-in too!

Thank you.

schanulleke 09-30-2006 05:07 PM

Thank you for this possibility. We were looking for this. :)

I noticed the questions are only asked if someone wants to register. Is it also possible to use this if you want to allow unregistered people to post on the forum?

So instead of image verification for unregistered posting using these question to verify if they are human.

If this is possible, could you tell us how we can make that work?
Thank you in advance!

Mile-O-Phile 10-06-2006 01:28 PM

Quote:

Originally Posted by blankoboy
Then you could simply create a different question and answer. Some example:

What do you put in your car to make it go? Gas

Bad example. Petrol, diesel, key, and a driver are all perfectly valid answers also.

bigmonay2k 10-06-2006 05:50 PM

lol nice hack

kau 10-11-2006 04:32 PM

What about a copy for 3.5.x

a squared 10-14-2006 06:08 PM

Is this working in 3.6.2?

Sore Eyes 10-16-2006 10:53 AM

Quote:

Originally Posted by schanulleke
Thank you for this possibility. We were looking for this. :)

I noticed the questions are only asked if someone wants to register. Is it also possible to use this if you want to allow unregistered people to post on the forum?

So instead of image verification for unregistered posting using these question to verify if they are human.

If this is possible, could you tell us how we can make that work?
Thank you in advance!

I strongly support this suggestion.

Would be great!

And now I looked a bit further into it, I found a few more occasions where the CAPTCHA is used, like the search when someone is not logged in, and there might be more...

farooqaaa 10-21-2006 08:56 AM

wow!!!!! thanks alot.

My server didnt supports GD Library. it fixed my problem now, thanks!ss!!!!

*lets click Installlllll*

antialiasis 10-22-2006 06:18 PM

I am working on a version that works with all places where CAPTCHA is used in vBulletin - it's working fine for guest posts and contact forms, but I'm having problems with the guest search for some reason. I'm hoping to get it out soon.

There is a 3.5 plugin (and a note following it) on page three or four of this thread.

And yes, it works in 3.6.2 - well, my forum is having a problem with displaying the wrong version number, but I did replace the files and everything and it works fine.

Sore Eyes 10-24-2006 01:32 PM

AntiAlias,

sounds good :D

I hope you will be succesfull ;)

spgoldman 10-25-2006 01:27 PM

Hi,
I get this error when trying to import xml:
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 (THIS_SCRIPT == \'register\')\r\n{\r\n $globaltemplates[] = \'nospam\';\r\n}', 'nospam');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Wednesday, October 25th 2006 @ 10:22:53 AM
Script : http://www.westwoodvelo.com/admincp/plugin.php
Referrer : http://www.westwoodvelo.com/admincp/...?do=productadd

Any Idea????
Thx

PoetJA-1975 10-26-2006 05:24 AM

Very nice share = Jacquii clicks INSTALL
Thanx -

I do have a question though - http://JPiCForum.info - You'll see I am making use of the QuickRegister on the JPiC portal... How can I get this to work for that?

I'm also using image verification for non-members on the Contact Us page - It would be excellent if NoSpam! work for that page as well.

At anyrate - Thanx = wonderful modification - EASY install :)

Jacquii.

ski diva 10-26-2006 04:43 PM

Just wanted to post that since I installed this on October 17, I have had no spammers at all! A great add on. And thanks for adapting it for us 3.5.4 users.

Top Nurse 10-26-2006 11:23 PM

This hack kicks ass!

We ditched the captcha and went all the way with this product. Few outside our organization would be able to come up with the right answers and I can guarantee no bot will ever make it. :laugh:

Edit: Besides asking a straightforward question you can also set up fill in the blank questions. If you utilize sayings that are specific to your intended audience then you pretty much eliminate all the bots.

For example:
  • Fill in the blank "Jails, Institutions, and ______"
  • Fill in the blank "Nuclear _______ is a by-product of splitting atoms."

We made up a whole bunch of these types of questions and with the random display we can just about forget about bot spammers. https://vborg.vbsupport.ru/external/2007/03/4.gif

By the way, where is the Mod of the Month link! This hack gets my vote. :)

GrendelKhan{TSU 10-28-2006 05:51 PM

installed 3.6.0 !

working great..thanks! :D


All times are GMT. The time now is 12:37 PM.

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.02884 seconds
  • Memory Usage 1,834KB
  • 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
  • (3)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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