vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Contact Us image verification! (https://vborg.vbsupport.ru/showthread.php?t=80557)

Tenny 04-25-2005 10:18 PM

Contact Us image verification!
 
Hey Everyone,

I am pretty positive I'm not the only one, but as of late, I've been getting a lot of spam (free poker, pharmacy, etc) from the "Contact Us" form (sendmessage.php) form.

So I am looking for a way to put the image verification on that, also (not just new registrations). I would greatly enjoy it. I'm getting about 5-6 daily, and only 1-month that is actually correct.

Thanks,
Drew

PS: I ran a search but nothing came up with it, sorry if there is one there. :(

akanevsky 04-25-2005 10:34 PM

Just restrict the sendmessage.php form to registered users :)

if (!$bbuserinfo['userid'])
{
print_no_permission();
}

In the beginning of the file.

Tenny 04-25-2005 10:40 PM

I was thinking of that, but what if the person is having problems registering etc? One friend said he couldn't get into his account (lost the pw, and the email never was sent etc)

But good idea, I'll probably throw that in, if nothing else comes up. :) thanks!

timetunnel 10-24-2005 10:00 PM

Hello.

If you want to add image verification for 'REGISTERED' users, one method is to do the following:

in "sendmessage.php", search for 'imagecheck'. You'll find this word exists in 2 places.

For each instance, in its associated block of code, modify the following line:

FROM:
====

PHP Code:

if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == AND $vbulletin->options['gdversion']) 

TO:
==
PHP Code:

if (!$vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == AND $vbulletin->options['gdversion']) 


Hope this helps.

RedWingFan 02-20-2006 04:35 PM

Quote:

Originally Posted by timetunnel
Hello.

If you want to add image verification for 'REGISTERED' users, one method is to do the following:

in "sendmessage.php", search for 'imagecheck'. You'll find this word exists in 2 places.

For each instance, in its associated block of code, modify the following line:

FROM:
====

PHP Code:

if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == AND $vbulletin->options['gdversion']) 

TO:
==
PHP Code:

if (!$vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == AND $vbulletin->options['gdversion']) 


Hope this helps.

Is this image verification mod possible to do for unregistered users also? We've gotten 33 of these in the past week, with more coming in daily. Definitely a bot, and from the IP addresses I've checked, they are all coming from web hosting companies. My guess is these are running as zombies on compromised web hosting accounts.

We rely on this Contact Us form to let anyone contact us, not just registered users.

ConqSoft 02-20-2006 05:12 PM

3.5.3 has built in image verification for guests, if you enable it. timetunnel was just showing how you can remove the conditional to make it show for EVERYONE.

RedWingFan 02-21-2006 03:12 AM

Quote:

Originally Posted by ConqSoft
3.5.3 has built in image verification for guests, if you enable it. timetunnel was just showing how you can remove the conditional to make it show for EVERYONE.

Actually, if we were on 3.5.x, it'd be applicable. ;) I was asking here in the vB 3.0 mods area since I didn't want to start another thread for it.

If there's nothing available, so be it...maybe I'll request a mod elsewhere, or just write my own contact form outside of vB and disable this one, since it's nothing more than a spam magnet now. 3.5 isn't an option for us right now, not until the resource usage is tamed anyway...

cbr929rrerion 03-06-2006 10:36 PM

Quote:

Originally Posted by timetunnel
Hello.

If you want to add image verification for 'REGISTERED' users, one method is to do the following:

in "sendmessage.php", search for 'imagecheck'. You'll find this word exists in 2 places.

For each instance, in its associated block of code, modify the following line:

FROM:
====

PHP Code:

if (!$vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == AND $vbulletin->options['gdversion']) 

TO:
==
PHP Code:

if (!$vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == AND $vbulletin->options['gdversion']) 


Hope this helps.


you are my hero, I have been wanting to add that so everyone has to do the image verification, my board was getting slammed by hackers using php email.. this will help I am sure..

Hats off.. thanks

timetunnel 03-09-2006 03:33 AM

...glad ya like it. ENJOY!

Andromeda2875 02-03-2007 11:41 PM

I hate to hijack a thread however this is happening to me as well and it is annoying. I am running 3.6.4 what do I do to stop spam from the contact me link?


All times are GMT. The time now is 06:05 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.01066 seconds
  • Memory Usage 1,759KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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