vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Enhanced Image Captcha - Stop bots from signing up! (https://vborg.vbsupport.ru/showthread.php?t=181818)

steadicamop 06-06-2008 10:00 PM

Enhanced Image Captcha - Stop bots from signing up!
 
Title : Enhanced Image Captcha

Version : 2.2b

VB Versions : Currently working and tested on 3.8.4 (as of Dec 2014)

Coder : Andy Calderbank & Jason Williams

Purpose : Add extra Image Verification to the registration process, using an alternative system to the Captcha system.

The Enhanced Image Captcha system is a unique system using images versus text to stop spammers signing up to your forum. The script automatically detects images and uses the filename as the title, making adding new images extremely simple. To further improve security, the images are passed through a script which means that none of the images on the screen have file names - and cannot be associated to the question by title alone - and cannot be viewed by trying to access the images directly.

Please note, there is a .htaccess file within the images directory, to keep security tight, this must be kept, without it bots are able to scan the images and make a match, I understand not every server can utilist .htaccess but cannot get around this.

Important : This has been tested on 3.7 and 3.6.2 - as far as I know this should be backwards and forwards compatible.

My thanks go to all the guys who have helped with this, all the suggestions and feedback, all has been take on board and where necessary included in this new version - members in particular are : King Kovifor, Danny.VBT, Lynne and RCK.

Also thanks to ogameclub for the Turkish translated version.

I must thank Opserty too for their hard work in making me understand where I was going wrong!!

New features from original 1.11 release!!

Admin settable options:
  • Number of images to display
  • Path to image directory (so you can change if you prefer)
  • Resize image between 50% - 150% of original image
  • Number of images to display before a line break (see History)
  • Enable/Disable
Demo : http://www.steadiforum.net/register.php

I hope this is help to the VBulletin community as I know this is a growing problem. I don't fancy the thought of trawling through hundreds of new members deleting stupid usernames and spam posts.

Installation :
  1. Upload show.php to your forum root directory (or wherever register.php is).
  2. Upload the images/verification directory, this can be moved to the forum root or have the verification name changed, but needs updating in the Enhanced Image Captcha AdminCP options.
  3. Import Product - product-enhanced_image_captcha.xml
  4. Make sure that you check that the Images Path is correct in AdminCP -> VBulletin Options -> Enhanced Image Captcha.
  5. You can also select how many images and what size from the original you would prefer.
Upgrading:
  1. Import Product - product-enhanced_image_captcha.xml - overwrite if necessary.
  2. Set any options you need in AdminCP -> VBulletin Options -> Enhanced Image Captcha.
Upgrading from v1.xx :
  1. Remove the images/verification directory and all images inside.
  2. Uninstall the product - Enhanced Captcha Image Verification - important for phrase and template removal!
  3. Upload show.php to your forum root directory (or wherever register.php is).
  4. Upload the images/verification directory, this can be moved to the forum root or have the verification name changed, but needs updating in the Enhanced Image Captcha AdminCP options.
  5. Import Product - product-enhanced_image_captcha.xml - overwrite if necessary.
  6. Make sure that you check that the Images Path is correct in AdminCP -> VBulletin Options -> Enhanced Image Captcha.
  7. You can also select how many images and what size from the original you would prefer.
Requirements : GD Libraries installed

File uploads : 53 (including images)
Files to Import : 1
New Templates : 2
New Phrases : 15
Uses Hooks : 1
New Queries : 0

History :
v2.0b
  • Original Beta release
v2.1b
  • Added Enable/Disable Option
  • Also added Turkish Translated version
  • Added new image page
v2.2b
  • Bug Fix : Opera browsers, any number over around 8 images disappears over side of screen, added number of images before line break function to stop this happening
Don't forget you don't have to use the provided images - you can customise these to any you wish - I've used ones that are hopefully universal and everyone will recognise.

logicuk 06-07-2008 07:46 PM

Thank you so much.....hopefully this can stop the bloody spam users im getting

aynadaki 06-07-2008 08:32 PM

how can i change language for questions ?

steadicamop 06-07-2008 08:36 PM

All the image filenames are used as the questions - just rename the files with the translation you need ... just make sure you leave the .jpg file extension. Everything else is phrased and can be translated easily by editing those starting with eic_

Jason

aynadaki 06-07-2008 08:56 PM

Thank you sir...

mikeylikesitz 06-07-2008 09:33 PM

thanks for the new release, nice to have options in the admincp

ogameclub 06-07-2008 09:42 PM

I translated image names to Turkish

Ammari 06-07-2008 10:06 PM

good work, well done...

I will keep v.1 till gold is out :)

but i must say, it's a very very good addon.

Barakat 06-08-2008 12:35 AM

thanks a lot realy a good hack ,,, and usefull

steadicamop 06-08-2008 01:22 AM

Quote:

Originally Posted by ogameclub (Post 1543540)
I translated image names to Turkish

Thanks for the translation, I've added it to the downloads above and have made sure you're credited. I've updated it to the latest version and will try to each time there is an upgrade.

Jason

AdrianH 06-08-2008 04:56 AM

Installed but have found an error.

Trying to increase the number of images above 8, the images no longer appear in a second row and therefore will not fit within the screen.

Kirauni 06-08-2008 07:39 AM

I use the previous version, but I will update my testforum to 3.7.1 and see if this new version works as well. But I sure think it will :)

Thanks for your efforts, I really appreciate this add-on!
Still I wonder if it's possible to use this mod as verification for guest users when they are granted posting permissions. It would be a nice addition, I think.

Oh and I can try contributing a German translation of this addon, if you are okay with it, Steadi. Just let me know and I'll try my best.

steadicamop 06-08-2008 07:57 AM

Quote:

Originally Posted by CareyCrew (Post 1543769)
Installed but have found an error.

Trying to increase the number of images above 8, the images no longer appear in a second row and therefore will not fit within the screen.

Really?

I have tested with all 15 images showing, from 50% to 150% and it works fine, it just aligns them underneath one another, not sure why you're having this issue, will double check now on my forum.

Edit - attached is a grab from my forum, with all 15 images set, 3 rows of 5, if this problem doesn't resolve itself PM your forum details and I will take a look.

Jason

steadicamop 06-08-2008 08:00 AM

Quote:

Originally Posted by Kirauni (Post 1543873)
I use the previous version, but I will update my testforum to 3.7.1 and see if this new version works as well. But I sure think it will :)

Thanks for your efforts, I really appreciate this add-on!
Still I wonder if it's possible to use this mod as verification for guest users when they are granted posting permissions. It would be a nice addition, I think.

Oh and I can try contributing a German translation of this addon, if you are okay with it, Steadi. Just let me know and I'll try my best.

If you can knock up a German translation that would be great I can add it to the Translated versions - as regards the guest posting, I'm not too sure how that works, will have a look and see if it can be converted over.

Jason

AdrianH 06-08-2008 09:23 AM

Quote:

Originally Posted by steadicamop (Post 1543883)
Really?

I have tested with all 15 images showing, from 50% to 150% and it works fine, it just aligns them underneath one another, not sure why you're having this issue, will double check now on my forum.

Edit - attached is a grab from my forum, with all 15 images set, 3 rows of 5, if this problem doesn't resolve itself PM your forum details and I will take a look.

Jason


This is what it does for me.

steadicamop 06-08-2008 09:32 AM

Darn - what browser are you using? I don't think that could be it but want to rule it out, I suspect after that it's the style you're using ... might have to knock up some code to count out say 5 then insert a break ... I'll see what I can do today.

Jason

AdrianH 06-08-2008 09:39 AM

Quote:

Originally Posted by steadicamop (Post 1543932)
Darn - what browser are you using? I don't think that could be it but want to rule it out, I suspect after that it's the style you're using ... might have to knock up some code to count out say 5 then insert a break ... I'll see what I can do today.

Jason

Ahh....... I use Opera and having just checked in FF the problem is not there in any of my styles.

steadicamop 06-08-2008 09:52 AM

This is where I hate Macs (I know Opera can be used on Windows though, but Macs seem to give me headache problems!!)

I'm going to work on creating some code that will count out how many to put per line, I think I can make it an admincp option too ... this will be coming out as soon as I can get it done!

Jason

maidos 06-08-2008 03:30 PM

i still get bots registering my site even if i installed this mod, they keep pm spam my members and their join date is after when i installed the script
have email confirmation active but tahts useless aswell

steadicamop 06-08-2008 04:36 PM

Quote:

Originally Posted by maidos (Post 1544167)
i still get bots registering my site even if i installed this mod, they keep pm spam my members and their join date is after when i installed the script
have email confirmation active but tahts useless aswell

How many images do you have enabled? I suggest making it around 10, this can slow the bots down some, if that still doesn't work, it sounds like you have a lot of bots trying to register on your site, I know I get very few getting through, should have even less now.

maidos 06-08-2008 06:22 PM

i know, i always go with as many pictures as possible but it still doesnt work.. i get alot of religious spam ...

steadicamop 06-08-2008 06:45 PM

That is very odd, with this, it makes it much harder as random clicking will eventually find the right one ... but as the answer moves, each extra image increases the odds. I'm debating on whether to try and incorporate the strike system, but just don't know how it works yet so will be looking into that.

steadicamop 06-09-2008 05:00 PM

Ok update released for the Opera browser issue -- new AdminCP option to choose how many images are displayed before a line break is inserted.

Jason

AdrianH 06-09-2008 05:12 PM

Quote:

Originally Posted by steadicamop (Post 1545174)
Ok update released for the Opera browser issue -- new AdminCP option to choose how many images are displayed before a line break is inserted.

Jason

And it works beautifully Jason thank you.

steadicamop 06-09-2008 06:30 PM

No problems, thanks for bringing the issue to my attention, glad it's working well now, lets hope it keeps the spammers away!

Jason

Deepdog009 06-09-2008 07:00 PM

steadicamop,,,
Do you have Form Hack installed???

I was wondering if this might intergrate with the the Form Hack???

Great Job... Keep the ball rolling...

steadicamop 06-09-2008 07:02 PM

Quote:

Originally Posted by Deepdog009 (Post 1545270)
steadicamop,,,
Do you have Form Hack installed???

I was wondering if this might intergrate with the the Form Hack???

Great Job... Keep the ball rolling...

Not too sure which mod you mean by Form Hack ... do you have a link? I did convert v1 of this to work on the contact me page .... I think that should be easily converted for v2....

baghdad4ever 06-13-2008 02:00 PM

thanks

installed

Droptop 06-14-2008 04:18 AM

<font color="black">Works Great!!...Thanks...**Clicks Install**</font>

steadicamop 06-14-2008 03:22 PM

Once we get to 30 installs I will take this off Beta status .... hopefully the only bugs/holes have been fixed, I think I may up the total number of images to 20, just so it's an option anyone can use.

Thanks for your support guys and hope this is working well for you at combatting spam!

Jason

James Desalus 06-14-2008 10:31 PM

A strike system would make this mod PERFECT. I'm going to install this within the next few days.

Great work, Steadicamop.

Chance4Today 06-14-2008 10:38 PM

Thanks for this :) I have been getting hit hard on a fresh license from vbulletin and have only 7 actual members but have had over 30 bots already. I hope this helps....
;)

JVSP 06-14-2008 10:51 PM

Quote:

Originally Posted by James Desalus (Post 1549503)
A strike system would make this mod PERFECT. I'm going to install this within the next few days.

Great work, Steadicamop.

x2:up:

jmellors 06-15-2008 01:55 PM

To get the image pack 2 working do you just upload them and it does it automatically?

Christophe_O 06-15-2008 07:21 PM

Quote:

Originally Posted by steadicamop (Post 1549249)
...I think I may up the total number of images to 20, just so it's an option anyone can use...

Well I am no expert but here is my thinking.
  • I suggest to create 2-3 multiple-choice options instead of just one. I.e., the verification page might consist of 2 or 3 challenges to choose the correct image from a row of 7-10 images. The visitor could be asked to check a box beside the correct image, 2-3 times. Still simple for humans, and only requiring a download of 14 to 21 images, but offering 49 to 343 possible answers.
  • Otherwise, I am concerned that this hack may not work if it becomes widely used. To be human friendly, we need to limit the images to 15 and also to allow 3 tries. This allows a high guessability ratio of about 20%. Even with 30 images, but only 1 question, it's still not ideal for blocking robots, and less human friendly. Currently 15 images can work fine because this is not widely used. But if this program becomes popular, it will also become worthwhile to program robots to get in by repeated guessing--going to the next forum on the list, then returning the next day, or etc--unless the variation is increased.
  • Also, when I click a 'wrong' image ... then try to go 'back' with Firefox ... the images are not refreshed automatically. This will confuse some people, I think.
  • Very promising hack! Has my vote for MOTM. Sorry I accidentally left my original comments in your old thread: Enhanced Image Captcha 1.11

intricatic 06-15-2008 10:01 PM

This is an absolutely fantastic modification. Thanks.

joeeleven 06-17-2008 02:47 AM

Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(/var/tmp/) is not within the allowed path(s): (/usr/home/*****/:/usr/lib/php:/usr/local/lib/php:/tmp) in [path]/register.php(204) : eval()'d code on line 3

Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: files (path: ) in /usr/home/*****/public_html/register.php(204) : eval()'d code on line 3

this is on vbulleting 3.7.1
any help?
i need to stop those damn bots, more than 10 registrations a day

steadicamop 06-17-2008 08:54 PM

Hmmm odd ... will have to check into this, looks very unusual to me, will get back to you when I can figure it out.

callumbush 06-23-2008 12:11 AM

Hi Steadycamop,

Looks like a great mod! Are we near to non-beta? I might wait for that..

p.s. my dad is a Jimmy Jib operator, small world! I hear the steady cams are meant to be quite good

steadicamop 06-24-2008 06:54 PM

This is pretty much out of beta as it is now -- there aren't any more real changes I could make to make it another version up -- I will just take the Beta status off, I think it's working well and with no issues so far (except one above, which I'm addressing).

callumbush :: Steadicam, great fun, heavy as hell but love the look people give you running with it!!!


All times are GMT. The time now is 10:52 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.01473 seconds
  • Memory Usage 1,846KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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