PDA

View Full Version : Contact Us image verification!


Tenny
04-25-2005, 10:18 PM
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:
====

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

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


Hope this helps.

RedWingFan
02-20-2006, 04:35 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:
====

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

TO:
==
if (!$vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == 2 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
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
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:
====

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

TO:
==
if (!$vbulletin->userinfo['userid'] OR $vbulletin->userinfo['userid'] AND $vbulletin->options['contactustype'] == 2 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?

Shazz
02-03-2007, 11:48 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?

Just do the following fix provided above

Andromeda2875
02-04-2007, 12:03 AM
That is for vb 3.5 though. Will it work for 3.6.4 as well?

Shazz
02-04-2007, 12:34 AM
That is for vb 3.5 though. Will it work for 3.6.4 as well?

Its 1 quick .php edit
Not that hard to try out to see if it works :)

Andromeda2875
02-04-2007, 01:08 AM
I looked and those lines of code where not in that file.