Update: 6/2015
Changed e-mail token and math problem confirmation logic. Previously, everything happened all at once, and the user would get prompted mutliple times for the math problem.
Now, the user must answer the math problem first, before the e-mail token is sent. Once the math problem is correctly answered within the session, it isn't asked again. The user must now enter the correct token, which results in successful registration.
SPECIAL THANKS TO OLEG M. FOR HELPING ME IDENTIFY, FIX, AND TEST THE ERROR!!
Update: 5/2015
Added E-mail confirmation token. Prevents registration until user enters a token sent via e-mail.
Features:
- Prevent users from registering, if their IP or e-mail address is listed in the "Comments" blacklist (Settings..Discussion)
- E-mails user a 4-digit token, and requires the user to enter the token in order to register.
- Users must solve a simple math problem (Add two one-digit numbers).
- Places user IP address in "Website" field.
This is a super-simple user registration spam countermeasure. I searched for a plugin that was SIMPLE and EFFECTIVE. I looked at quite a few plugins that promised the desired effect, but were either cumbersome, or included too many unneeded or unwanted features. Likewise, there are some very simple plugins that are less-than-effective.
This plugin is VERY simple:
If the user's IP or e-mail address is listed in the "Discussion" comments blacklist, it prevents the user from registering. This functionality should really be built in to WordPress, so, you're welcome.
When the user registers, they are presented with a simple math problem - adding a 3-digit number to a 1-digit number. 99% of the "user reg spam" is based on bots being able to attack the basic WordPress registration form. By adding even a simple math problem, most bots will fail, removing your site as a target of opportunity. Criminals go after what's easy - if you make it slightly more difficult for them, they will go after someone else.
Once the user solves the math problem, they are sent a 4 digit token via e-mail, and must enter that token to continue registration.
Finally, knowing the location from where your users register allows you to more effectively evaluate and block the source. This plugin adds the user's IP address (at the time of registration) to the "Website" field.
Go to
http://whois.arin.net to find out who they are. If you decide to block the IP, add the IP address, part of the IP address, or e-mail domain to the "Discussion" comments blacklist, and ANY user registrations from an IP address matching that pattern will be blocked.
Installation:
- Upload
JPUserRegTools.php
to the /wp-content/plugins/
directory
- Activate the plugin through the 'Plugins' menu in the WordPress Dashboard. Click "Activate" underneath "JP User Registration Blacklist".
- Add full or partial IP addresses or e-mail addresses to the Settings..Discussion
Comments Blacklist
, one per line.
- NOTE: This plugin works with the default settings. No configuration is required. Customize settings by clicking the "Settings" link underneath "JP User Registration Blacklist" plugin, on the Plugins page.
Example:
Adding 176.24. to the comments blacklist blocks:
- 176.24.anything.anything
- 176.24.1.1
- 176.24.1.254
- 176.24.255.1
- 176.24.255.254
- Etc...
Adding 176.24.10 (no trailing dot) to the comments blacklist blocks:
- 176.24.10.x
- 176.24.10x.x
- 176.24.100.x
- 176.24.101.x
- Etc...
Go to the ARIN website to figure out what the correct IP range is.
Start by just blocking a single IP address. If you keep getting user registrations from other, similar IP addresses, block the whole range!
Adding .pl to the commets blacklist blocks:
- anyone@anydomain.pl
- Someone@somedomain.pl
- Etc...
Blacklist
Starting with 1.6.1, I will be providing regular updates for blacklisted IP addresses and networks that I've accumulated.
Copy the entries below to the
Settings ...
Discussions ...
Comment Blacklist section, scroll down, and click
Save
5.157.\
5.165.\
5.226.\
5.227.\
5.228.\
5.229.\
5.230.\
5.231.\
5.255.\
14.102.109.\
23.27.\
23.28.\
23.29.\
23.89.\
23.94.\
23.95.\
23.229.\
23.232.\
23.245.\
23.246.\
23.247.\
31.132.4.\
37.59.\
37.215.\
45.58.50.\
45.61.46.\
46.102.98.\
50.2.\
50.3.\
59.174.\
66.118.\
66.248.\
69.12.\
74.211.96.\
78.157.212.\
83.143.242.\
89.36.\
89.44.\
89.47.\
93.81.\
93.118.\
94.249.242.\
95.59.108.\
104.128.\
104.140.\
104.206.\
104.247.\
107.168.\
108.62.102.\
108.179.224.\
109.169.5.\
109.200.20.\
110.89.\
113.196.\
117.26.\
117.174.\
117.211.\
136.0.\
142.4.211.\
155.94.\
158.222.\
162.244.\
162.245.\
167.160.\
172.245.\
173.213.\
173.232.\
173.234.\
178.162.\
183.11.\
183.207.\
185.24.\
188.68.\
188.208.\
188.209.\
188.210.\
188.211.\
188.212.\
188.213.\
188.214.\
188.215.\
188.240.\
190.151.\
191.101.243.\
192.3.\
192.77.\
192.99.\
192.124.\
192.125.\
192.126.\
192.127.\
192.128.\
192.171.\
192.200.\
192.227.\
192.230.\
192.240.\
192.255.\
193.254.251.\
195.154.\
198.49.\
198.50.\
198.51.\
198.52.\
198.53.\
198.54.\
198.55.\
198.56.\
202.69.\
202.99.172.\
204.44.112.\
204.14.87.\
209.141.60.\
209.161.96.\
213.108.202.\
beselfsmart.com\
emailind.com\
mail.bg\
producrate.com\
pockmail.com