Feature #2814
closed
Added by Matt Gold over 10 years ago.
Updated over 10 years ago.
Description
Hi Ray,
We had a spam user security issue last week that resulted in a crash of the server, so I'm looking for ways to restrict sign-ups a bit. I was thinking about restricting registration on NYCDH to people with .edu and .org domains, and than giving people a way to contact us if they wanted to register through another address. Can you please let me know:
1. Am I right that the place to restrict registrations is in Network Admin > Settings > Network Settings > Limited Email Registrations?
2. Where can I find the registration page file so that I can edit it and add a note to people that explains these new registration settings?
Many thanks.
Best,
Matt
Hi Ray --
Can you please help me with this when you have a chance? Thanks.
Best,
Matt
Hi Matt,
Apologies for the late reply.
The "Limited email domains" option only works if you specify the full domain (eg. cuny.edu) and not with a top-level domain (eg. .edu). This doesn't work for our use-case so I just wrote a quick plugin to only allow registrations with the .edu and .org top-level domains for email addresses. It is already active on NYCDH.
For no. 2, it isn't possible to add a note without either modifying the registration template or adding a quick plugin to add or change the registration text. Please let me know what you want the text to be and I'll add a quick code snippet to change the text.
Many thanks for your help with this, Ray!
Could you please add this text snippet to the sign-up page, under the email entry box?
"Registrations are currently allowed only for .edu and .org addresses. To register with a different address, please write to nycdigitalhumanities@gmail.com to request an account."
Thanks again.
BTW, spam has dropped off entirely since you instituted this. What a relief.
I've added the additional registration text on the page. Glad to hear that user spam has dropped off considerably since this change.
- Status changed from Assigned to Resolved
Many thanks, Ray! Would you mind sending me the details of how you did this via email so that I could potentially implement the same solution on other CBOX installs? Thank you.
I'll expand the code I wrote into a full-fledged plugin.
Give me up to a day or so.
Also, if you don't mind, please do it on our dime and co-list the Commons as co-author.
Hi Ray --
Can you please remind me whether you ever released this to the WP plugin repo and if not, how I can add it to a new CBOX install at the Graduate Center (translocalcommons.org)? Many thanks.
Also available in: Atom
PDF