![]() |
Contacts Spam Filter
This little product/plugin disallows automatic sending of spam through the Contact Us page.
Notes to version 1.1.0.0 Due to an almost personal battle against some spammers - intended as: high spam update rate, specially in the weekends when both me and spammers have nothing to do - I added an option to check the allowed number of hyperlinks in the message body, which makes this spam filter a little more intelligent. ;) The default number of allowed links is set to 12, which appears to be the lower limit from the latest research. For customizing the message and the number of allowed hyperlinks, an option interface was added, which appears right below the vBulletin Options list - Site Name / URL / Contact Details, as 'Contact Us' Spam Filter Settings. Version History 1.1.0.2 Additional recognition strings (repetitive 'http://') 1.1.0.1 FIX: Hyperlinks count bug. 1.1.0.0 Additional recognition strings; check of allowed number of hyperlinks in the message body; options interface 1.0.1.10 Additional recognition string 1.0.1.9 Additional recognition string (not published) 1.0.1.8 Additional recognition string (not published) 1.0.1.7 Additional recognition string 1.0.1.6 Additional recognition string (not published) 1.0.1.5 Additional recognition string (not published) 1.0.1.4 Additional recognition string 1.0.1.3 Additional recognition string 1.0.1.2 Additional recognition string 1.0.1.1 Full vBulletin integration, updateable 1.0.0.0 Basic Spam Filter |
How does it?
Can you give us some more information on what this does that the image verification doesn't do? |
more info?
Ok, by reading the XML i found out that if someone goes directly to the sendmessage.php without coming from any of the forums page, the Contact form is not displayed. |
If the referring page is not the one you specified in the CP options, normally http://www.domain.tld/sendmessage.php, an automated script with the POST / GET commands will receive an essentially blank page, and the mail is not sent.
This is useful only to sites, like mine, where image verification is not appliable. PHP Code:
When this will happen, an additional test may be to add a host IP comparison. |
Great hack!
|
Here is an update, which does some extra work against automated browsers, and thus has become pretty safe and easy to update.
PHP Code:
|
Here comes Giovanni :banana:
|
very good...thx
|
good really OK splendid compliments is then I have read you from some part I do not remember where to here on the Sergio & Danny Ciaooooooooo Vbulletin.it by
|
I think the latest version has finally made it - no spam is passing through the filters :cool:
|
How can I get this code to work with 3.0.x?
It looks good, but so far I did not see a good way to get it to work with the older version. |
Quote:
|
Well I got it working.
in the send message.php I added the code in two parts: This part went into the E-mail permissions piece. Just before the initialisation of the error array. Since (as I understood) this blocks mail sent from outside the page, I left the Die message in it. Don't make them wise ;) Look for: Code:
// initialize errors array Code:
//ANTI SPAM PART 1 In the section // ############################### do contact webmaster ############################### Look for: Code:
// if it's all good... send the email Code:
//ANTI SPAM PART 2 |
Quote:
|
True word.... I noticed
And the'' be kind show the user what is wrong' is also not a good idea. Updating the errorstring and showing the form again invites the spammer (spambot) to retry. My server got huge pageloads in the last couple of hours (5 times more) with a normal, even a bit low, amount of visitors. Which resulted in an overloaded CPU. I saw I forgot two pieces of code. And with the just Die version you will get this for the second part: Code:
//ANTI SPAM PART 2 |
Thanks for adding your code modifications for 3.0.x :cool:
|
Hey peeps!
Great thought on this hack, we have just started to recieve loads of thoose nice rolex watch ads through there lol. I installed via the pluggin system, set the max hyperlinks too 3. But, logged in as admin, i now cant test the system it seems? It always renders me the Spam Filter: msg! Any ideas ? |
Quote:
|
Quote:
|
You are welcome :)
|
Install went just fine, and product showed up in the AdminCP panel. Yet, when I try sending a msg via the contact form it just goes right on thru as normal.
Any ideas? At first I was logged in as Admin and I thought maybe that was it, but then tried just as a regular registered user. Still, msgs came right on thru. BTW, the default was 12 which I set back to only 1. In my msgs I tried sending 2 or 3 LINKS, and as I said they posted just fine for some reason. What if you don't want even a SINGLE link to be able to be posted? Is that possible? It says "Please type '0' for no limit" in the AdminCP, but nothing about how to stop ALL links. Just curious. |
Quote:
|
Quote:
To be links considered as valid links, they must include a number of href="x", or else it won't work. Since my contacts box has been completely abbandoned from spammers after installing this plugin I think this issue is only theorically present. However if you experience heavy spam of a kind, please paste me such a message in a PM and I'll see what I can do. |
So is there a way I can TEST this and thus know it's working?
|
Sure, paste this:
9c53d2119880d95e96e1a71e3a6c8340 into the contacts message body and submit, or paste 20 times href=, which has the same effect. |
BINGO! Works P-E-R-F-E-C-T-L-Y! Sweet MOD! Thanxx again.
|
Doesn't work for me and i really could use it, i get heavy spam from some retarded spammers... If someone can update it i would be greatful.
Thanks |
Can you please attach here a full spam email message (incl. headers) which isn't going to be filtered by this plugin?
Please note, it is going to filter only the typical link list pasted from spambots, not other spam. However through the settings you may define how many links may be pasted into a message before it gets rejected. |
Quote:
|
Ok thanks. I'll look into it, needs just another line of code ;)
|
I've updated the spam filter. If this is still not working, I will need the complete email attached as a zip file, since pasting into a code/quote window may be changed by vbulletin. :knockedout:
|
awesome . thanks for make this . spammers made me crazyyyyyyyyyyyyyyyyyy .
anyway i have new Smart spammer that i think he know about ur hack , lol . here is the email with full header details : Quote:
|
Well I think there is not much I can do - but in any case, spam with only one link is not interesting to spammers, so they stop on their own :)
|
ok , Thanks anyway for make this great hack :)
|
I tripped across this old message in some archives and thought it was a unique addition to the choices on the Contact Us page that may offer some more defense:
Undertoad Jul 3rd 2006, 4:20pm Here's how I deal with it, via "Contact Us Options": Even with image verification off, this simple method worked perfectly. No spammer ever figured out that they should change the default setting. Every legitimate contact us user changed the setting. Gmail's spam filtering picked up only the spam messages. Problem solved. above taken from http://www.vbulletin.com/forum/archi.../t-188024.html |
This is the most intelligent solution I've ever seen :)
Compliments!!! |
All times are GMT. The time now is 02:10 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|