PDA

View Full Version : Blocking Registration via Custom Field


jarvis24
01-16-2009, 02:26 PM
On vbulletin.com, I posted the following:

stopping spam via custom fields

--------------------------------------------------------------------------------

I added a custom field to my registration page. It makes it pretty easy to tell which new users are spammers because they don't take the time to answer the question in an appropriate way. So I go and manually delete each of them (about 200 or so in the last couple weeks).

Question.. most of the spammers seem to answer the question by entering their username or a value of "1" to my custom field. Can I add some code somewhere to block registration with logic akin to:

if custom1 = username or custom1 = "1" then block registration

Just curious. I have many other methods in place to help with spam (which is why I'm deleting only 200 users instead of 5000 right now). This would probably bring it down to 5.

Would happily pay a developer to write me the code if no solution exists.

Thanks for any help!


And received the reply:

You might be able to do this with a regex but I don't have the code for it. The people on www.vbulletin.org may be able to assist with either a regex or some other solution involving custom code.

Any thoughts on this? If so, thanks in advance!

Dismounted
01-17-2009, 10:54 AM
The username match would probably need an additional plugin, as there is no readily available variable to use. However, matching a "1" should be easy. Just enter this into the regex verification field:
^[^1]$

Paul M
01-17-2009, 11:04 AM
Why not just use the built in Human Verification System to ask a question (that doesnt require 1 or your username as the answer).