PDA

View Full Version : Mini Mods - Prevent Number only registrations


Simon Lloyd
06-12-2011, 10:00 PM
What this mod does
This mod is simply another tool in the fight agains bots and spammers, it has no overheads so can be used in conjunction with anything. The mod prevents users from registering with a username that solely consists of numbers, it will not affect any users who have already registered with a numeric username.

To Install
Simply import the product in your ACP, in vbulletion options turn the mod on.

Will work on any version of vB that has the hook "userdata_presave"

Please mark as INSTALLED if you use this mod.

Simon Lloyd
06-13-2011, 01:53 PM
**reserved**

Lee G
11-20-2011, 06:19 PM
Tidy little mod.
Had someone from China setting up multiple accounts with number only locations
Then returning a week or two later and hitting 70 odd times with spam

Simon Lloyd
11-20-2011, 06:47 PM
Thats why i created it, same happened here ages ago :)

Lee G
11-21-2011, 06:52 PM
Simon, does this also work when they enter numbers only into the location?
I seem to have a guy in China doing a lot of that
Then again, banning complete ip ranges from China aint all bad :D

Simon Lloyd
11-21-2011, 08:58 PM
No it has nothing to do with locations, but, as a gift to you add the following to the User Profile feild for location's Regular Expression ^[A-Za-z]{2}[,A-Za-z ]*$ that will prevent numbers and require actual text :)

biftek
11-22-2011, 10:11 AM
so far haven't any number registrations , but have had alphanumeric that are driving me nuts
but iwill remember this mod just in case . thanks

Simon Lloyd
11-22-2011, 06:03 PM
biftek you can use regex (like i gave to Lee above) to make sure that they only enter letters and no numbers but pretty soon you will start annoying your members or potential memebers because they cant have the username they like, some like to have their birth year on their usernames like this: Simon2011 so if you restrict to just letters then you'll lose those potential sign ups :)

PinkMilk
11-30-2011, 10:31 PM
Would like to see this implemented into the ajax username check, but nice mod nonetheless, thx

Kış
07-25-2012, 09:10 AM
biftek you can use regex (like i gave to Lee above) to make sure that they only enter letters and no numbers but pretty soon you will start annoying your members or potential memebers because they cant have the username they like, some like to have their birth year on their usernames like this: Simon2011 so if you restrict to just letters then you'll lose those potential sign ups :)

Hi, cant you set those rules such as:
If the numbers are are included in usernaname, but are not 4 digits, not at the end of the name, and are not starting with 1 or 2 then deny registration ?
Surely, in this case also there will be some false positives, but in general i think it would be quite useful.
Regards.

Simon Lloyd
07-25-2012, 08:25 PM
Who's to say that they'll like to use 4 digits maybe they'd like to use their whole date of birth like Simon250712 or two digits for the year of birth or an age like Simon12, there's no telling what username that potential members might like, so i'd have to say it's pretty much impossible to do what you suggest unless you want to alienate people before they join :)

Nirjonadda
11-03-2012, 11:33 AM
Does it work on 4.1.10 ?

Simon Lloyd
11-03-2012, 11:41 AM
As it says in the description if your installation has the hook userdata_presave then yes it should (and vb4 series DOES have it :))

Snowhog
12-23-2012, 04:20 PM
Thank you Simon. Always nice to have another 'simple' spam prevention tool in our forums 'tool kit'. Installed and rated excellent.

Simon Lloyd
12-23-2012, 04:45 PM
You're very welcome.